return ECORE_CALLBACK_PASS_ON;
}
+static void mmc_changed_cb(keynode_t *node, void *user_data)
+{
+ DbgPrint("MMC status is changed\n");
+ lb_system_event_all(LB_SYS_EVENT_MMC_STATUS_CHANGED);
+}
+
static void time_changed_cb(keynode_t *node, void *user_data)
{
if (vconf_keynode_get_int(node) != VCONFKEY_SYSMAN_STIME_CHANGED)
DbgPrint("Content update monitor is initiated: %d\n", ret);
ret = vconf_notify_key_changed(VCONFKEY_SYSMAN_STIME, time_changed_cb, NULL);
- DbgPrint("System time event callback added: %d\n", ret);
+ DbgPrint("System time changed event callback added: %d\n", ret);
+
+ ret = vconf_notify_key_changed(VCONFKEY_SYSMAN_MMC_STATUS, mmc_changed_cb, NULL);
+ DbgPrint("MMC status changed event callback added: %d\n", ret);
return TRUE;
}
{
int ret;
+ ret = vconf_ignore_key_changed(VCONFKEY_SYSMAN_STIME, time_changed_cb);
+ DbgPrint("Remove time changed callback: %d\n", ret);
+
+ ret = vconf_ignore_key_changed(VCONFKEY_SYSMAN_MMC_STATUS, mmc_changed_cb);
+ DbgPrint("Remove MMC status changed callback: %d\n", ret);
+
ret = update_monitor_fini();
DbgPrint("Content update monitor is finalized: %d\n", ret);
ret = fault_fini();