-static bool __esd_is_service_app(const char *appid)
-{
- int ret = 0;
- bool is_svcapp = false;
- pkgmgrinfo_app_component component_type;
- pkgmgrinfo_appinfo_h handle;
-
- ret = pkgmgrinfo_appinfo_get_usr_appinfo(appid, getuid(), &handle);
- if (ret != PMINFO_R_OK)
- return false;
-
- ret = pkgmgrinfo_appinfo_get_component(handle, &component_type);
- if (ret != PMINFO_R_OK) {
- pkgmgrinfo_appinfo_destroy_appinfo(handle);
- return false;
- }
-
- _D("component_type : %d %d", component_type, PMINFO_SVC_APP);
-
- if (component_type == PMINFO_SVC_APP) {
- is_svcapp = true;
- }
- pkgmgrinfo_appinfo_destroy_appinfo(handle);
-
- return is_svcapp;
-}
-
-void __esd_free_noti(gpointer data)
-{
- eventsystem_info_s *n = (eventsystem_info_s *)data;
-
- FREE_AND_NULL(n->appid);
- FREE_AND_NULL(n->event_name);
- FREE_AND_NULL(n);
-}
-