void muse_core_remove_all_fd_table(void);
void muse_core_destroy_fd_table(void);
void muse_core_log_process_thread_info(int pid);
-void muse_core_log_process_opened_fd(int pid);
+void muse_core_log_process_opened_fds(int pid);
void muse_core_log_process_cpu_memory(int pid);
void muse_core_log_file_list(const char *path);
void muse_core_log_cmd_info(char *cmd);
muse_core_log_cmd_info(cmd);
}
-void muse_core_log_process_opened_fd(int pid)
+void muse_core_log_process_opened_fds(int pid)
{
char cmd[MUSE_MSG_LEN_MAX];
Name: mused
Summary: A multimedia daemon
-Version: 0.3.68
+Version: 0.3.69
Release: 0
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause
int ms_config_get_disable_watchdog_api(int module_idx);
int ms_config_get_max_instance(int module_idx);
int ms_config_get_caution_instance(int module_idx);
+gboolean ms_config_is_external_storage_enabled(void);
#ifdef __cplusplus
}
return conf->host_infos[module_idx]->caution_instance;
}
+gboolean ms_config_is_external_storage_enabled(void)
+{
+ ms_config_t *conf = _ms_config_get_instance();
+ muse_return_val_if_fail(conf, FALSE);
+
+ return conf->is_watch_external_storage_enabled;
+}
+
{
muse_core_log_process_thread_info(pid);
- muse_core_log_process_opened_fd(pid);
+ muse_core_log_process_opened_fds(pid);
muse_core_log_process_cpu_memory(pid);
}
{
#ifdef MUSE_USE_EXTERNAL_STORAGE_STATE_CHANGE
int ret = MM_ERROR_NONE;
- bool is_external_storage_enabled;
+ bool is_external_storage_enabled = false;
#endif
muse_return_if_fail(system);
#endif
#ifdef MUSE_USE_EXTERNAL_STORAGE_STATE_CHANGE
+ /* external storage feature is supported as of tizen_5.5 */
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)
+
+ if (ret != MM_ERROR_NONE) /* get the value of mused.conf until tizen_5.0 */
+ is_external_storage_enabled = (bool)ms_config_is_external_storage_enabled();
+
+ if (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