OSI: Protect cutils/properties.h from direct calls
Bug: None
Test: compile, no calls to property_get outside of libosi
change PROPERTY_VALUE_MAX in osi/include/properties.h
-> doesn't compile
Change-Id: I18c7b861782b1df4878da032ae3f0340dffdecab
diff --git a/service/main.cc b/service/main.cc
index b850d04..019098e 100644
--- a/service/main.cc
+++ b/service/main.cc
@@ -55,16 +55,14 @@
return EXIT_SUCCESS;
}
-#if !defined(OS_GENERIC)
// TODO(armansito): Remove Chromecast specific property out of here. This
// should just be obtained from global config.
char disable_value[PROPERTY_VALUE_MAX];
- int status = property_get(kDisableProperty, disable_value, nullptr);
+ int status = osi_property_get(kDisableProperty, disable_value, nullptr);
if (status && !strcmp(disable_value, "1")) {
LOG(INFO) << "service disabled";
return EXIT_SUCCESS;
}
-#endif // !defined(OS_GENERIC)
if (!bluetooth::Daemon::Initialize()) {
LOG(ERROR) << "Failed to initialize Daemon";