-static void checkAppPrivilegeByAppType(const char* type)
-{
- pkgmgrinfo_appinfo_filter_h filter;
-
- int ret = pkgmgrinfo_appinfo_filter_create(&filter);
- if (ret != PMINFO_R_OK) {
- _SERR("Failed to create appinfo filter");
- return;
- }
-
- ret = pkgmgrinfo_appinfo_filter_add_string(filter, PMINFO_APPINFO_PROP_APP_TYPE, type);
- if (ret != PMINFO_R_OK) {
- pkgmgrinfo_appinfo_filter_destroy(filter);
- _SERR("Failed to add appinfo filter (%s)", type);
- return;
- }
-
- ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(filter, checkAppPrivilegeListCb, NULL);
- if (ret != PMINFO_R_OK) {
- _SERR("Failed to pkgmgrinfo_appinfo_filter_foreach_appinfo");
- pkgmgrinfo_appinfo_filter_destroy(filter);
- return;
- }
-
- pkgmgrinfo_appinfo_filter_destroy(filter);
-
- return;
-}
-