Reorder parameters of function for consistency 92/70692/1 accepted/tizen/common/20160602.140044 accepted/tizen/ivi/20160602.022850 accepted/tizen/mobile/20160602.023022 accepted/tizen/tv/20160602.022551 accepted/tizen/wearable/20160602.022737 submit/tizen/20160531.024853
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 20 May 2016 06:40:58 +0000 (15:40 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 20 May 2016 06:40:58 +0000 (15:40 +0900)
reorder parameters for get_pkg_restrction_mode
for consistency with other functions

Change-Id: Ie12242e2861638ecbd286e36b8a72e0d260a24db
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
client/include/package-manager.h
client/src/pkgmgr.c

index c488df4..5d0709b 100644 (file)
@@ -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);
 
 
 /** @} */
index 1e16f3c..d98862d 100644 (file)
@@ -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,