#include <system_info.h>
#include <runtime_info.h>
+#define MUSE_STORAGE_EXTERNAL_FEATURE "http://tizen.org/feature/storage.external"
+
enum muse_poweroff_type {
MUSE_POWER_OFF_NONE = 0,
MUSE_POWER_OFF_POPUP,
void ms_system_subscribe_external_event(ms_system_t *system)
{
+#ifdef MUSE_USE_EXTERNAL_STORAGE_STATE_CHANGE
+ int ret = MM_ERROR_NONE;
+ bool is_external_storage_enabled;
+#endif
muse_return_if_fail(system);
#ifdef MUSE_USE_POWER_OFF_STATE_CHANGE
#endif
#ifdef MUSE_USE_EXTERNAL_STORAGE_STATE_CHANGE
- if (ms_get_instance()->conf->is_watch_external_storage_enabled == TRUE &&
+ ret = system_info_get_platform_bool(MUSE_STORAGE_EXTERNAL_FEATURE, &is_external_storage_enabled);
+ if (ret == MM_ERROR_NONE && is_external_storage_enabled == true &&
_ms_system_subscribe_external_storage_state_change(system) != MM_ERROR_NONE)
LOGE("Fail to subscribe external storage state change");
#endif