#define APP_NAME "media-scanner-v2"
-#define MSC_VCONF_KEY_SCANNER_POWEROFF_STATUS "db/mediascanner/poweroff_status"
-
static GMainLoop *scanner_mainloop2 = NULL;
static guint scanner_source_id2;
if (g_main_loop_is_running(scanner_mainloop2))
g_main_loop_quit(scanner_mainloop2);
- if (!ms_config_set_int(MSC_VCONF_KEY_SCANNER_POWEROFF_STATUS, 1))
- MS_DBG_ERR("set power off status to 1 failed");
-
MS_DBG_ERR("POWER OFF END");
}
return MS_MEDIA_ERR_INTERNAL;
}
- if (!ms_config_set_int(MSC_VCONF_KEY_SCANNER_POWEROFF_STATUS, 0))
- MS_DBG_ERR("set power off status to 0 failed");
-
/* Create new channel to watch pipe */
channel = g_io_channel_unix_new(fd);
scanner_source_id2 = g_io_add_watch(channel, G_IO_IN, msc_receive_request, NULL);
ms_unload_functions();
EXIT:
- if (!ms_config_set_int(MSC_VCONF_KEY_SCANNER_POWEROFF_STATUS, 0))
- MS_DBG_ERR("set power off status to 0 failed");
-
MS_DBG_INFO("Scanner-V2 is shutting down");
return 0;
}