From: Jiwoong Im Date: Thu, 20 Aug 2015 05:14:54 +0000 (+0900) Subject: add usr_ prefix in some pkgmgrinfo api. X-Git-Tag: accepted/tizen/mobile/20150826.070000^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=214b60f3a349fcf2216641ca410eff4214c9a860;p=platform%2Fcore%2Fapi%2Fapp-manager.git add usr_ prefix in some pkgmgrinfo api. - pkgmgrinfo_appinfo_usr_filter_foreach_appinfo - pkgmgrinfo_appinfo_usr_metadata_filter_foreach Change-Id: I2679534f918c3f359f72dca3192efd5d97e1fe8d Signed-off-by: Jiwoong Im --- diff --git a/src/app_info.c b/src/app_info.c index 6e5db43..f25a01b 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -692,7 +692,7 @@ API int app_info_filter_foreach_appinfo(app_info_filter_h handle, app_info_filte return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); } - retval = pkgmgrinfo_appinfo_filter_foreach_appinfo(handle->pkg_app_info_filter, app_info_foreach_app_filter_cb, &foreach_context); + retval = pkgmgrinfo_appinfo_usr_filter_foreach_appinfo(handle->pkg_app_info_filter, app_info_foreach_app_filter_cb, &foreach_context, getuid()); if (retval < 0) { return app_manager_error(APP_MANAGER_ERROR_IO_ERROR, __FUNCTION__, NULL); @@ -787,7 +787,7 @@ API int app_info_metadata_filter_foreach(app_info_metadata_filter_h handle, app_ return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); } - retval = pkgmgrinfo_appinfo_metadata_filter_foreach(handle->pkg_app_info_metadata_filter, app_info_foreach_app_filter_cb, &foreach_context); + retval = pkgmgrinfo_appinfo_usr_metadata_filter_foreach(handle->pkg_app_info_metadata_filter, app_info_foreach_app_filter_cb, &foreach_context, getuid()); if (retval < 0) { return app_manager_error(APP_MANAGER_ERROR_IO_ERROR, __FUNCTION__, NULL);