From: Junghyun Yeon Date: Fri, 20 May 2016 06:40:58 +0000 (+0900) Subject: Reorder parameters of function for consistency X-Git-Tag: submit/tizen/20160531.024853^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c027ef5c2ccdb60974efe9f27ce40efb59ef783e;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Reorder parameters of function for consistency reorder parameters for get_pkg_restrction_mode for consistency with other functions Change-Id: Ie12242e2861638ecbd286e36b8a72e0d260a24db Signed-off-by: Junghyun Yeon --- diff --git a/client/include/package-manager.h b/client/include/package-manager.h index c488df4..5d0709b 100644 --- a/client/include/package-manager.h +++ b/client/include/package-manager.h @@ -1041,7 +1041,7 @@ int pkgmgr_client_usr_unset_pkg_restriction_mode(pkgmgr_client *pc, const char * * @see pkgmgr_restriction_mode */ int pkgmgr_client_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, int *mode); -int pkgmgr_client_usr_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, uid_t uid, int *mode); +int pkgmgr_client_usr_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, int *mode, uid_t uid); /** @} */ diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index 1e16f3c..d98862d 100644 --- a/client/src/pkgmgr.c +++ b/client/src/pkgmgr.c @@ -2492,14 +2492,14 @@ static int __get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, int return PKGMGR_R_OK; } -API int pkgmgr_client_usr_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, uid_t uid, int *mode) +API int pkgmgr_client_usr_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, int *mode, uid_t uid) { return __get_pkg_restriction_mode(pc, pkgid, mode, uid); } API int pkgmgr_client_get_pkg_restriction_mode(pkgmgr_client *pc, const char *pkgid, int *mode) { - return pkgmgr_client_usr_get_pkg_restriction_mode(pc, pkgid, _getuid(), mode); + return pkgmgr_client_usr_get_pkg_restriction_mode(pc, pkgid, mode, _getuid()); } API int pkgmgr_client_usr_set_restriction_mode(pkgmgr_client *pc, int mode,