int ret;
pkgmgrinfo_appinfo_filter_h filter;
- ret = pkgmgrinfo_appinfo_filter_create(&filter);
- if (ret != PMINFO_R_OK) {
- ERR("pkgmgrinfo_appinfo_filter_create() Fail(%d)", ret);
- return MODES_ERROR_SYSTEM;
- }
-
switch (val) {
case ULTRA_POWER_SAVING:
case COOL_DOWN:
return MODES_ERROR_INVALID_PARAMETER;
}
+ ret = pkgmgrinfo_appinfo_filter_create(&filter);
+ if (ret != PMINFO_R_OK) {
+ ERR("pkgmgrinfo_appinfo_filter_create() Fail(%d)", ret);
+ return MODES_ERROR_SYSTEM;
+ }
+
pkgmgrinfo_appinfo_filter_foreach_appinfo(filter, appListCB, this);
pkgmgrinfo_appinfo_filter_destroy(filter);