Fix usage of some pkgmgr client APIs 39/114639/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 14 Feb 2017 09:01:54 +0000 (18:01 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 14 Feb 2017 22:30:30 +0000 (14:30 -0800)
Related changes:
[slp-pkgmgr] : https://review.tizen.org/gerrit/#/c/114638/

Change-Id: I996ae05f1e9e6a545f71c19acd5fccd608be3089
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_cmd.c

index 8c74bb8..9e8ee3b 100644 (file)
@@ -875,10 +875,10 @@ static int __process_request(uid_t target_uid)
                        if (data.global)
                                /* enable global app for this user only */
                                ret = pkgmgr_client_activate_global_app_for_uid(pc, data.pkgid,
-                                       __app_return_cb, __get_current_user_id());
+                                       __app_return_cb, NULL, __get_current_user_id());
                        else
                                /* enable app which belongs to this user */
-                               ret = pkgmgr_client_usr_activate_app(pc, data.pkgid, __app_return_cb, target_uid);
+                               ret = pkgmgr_client_usr_activate_app(pc, data.pkgid, __app_return_cb, NULL, target_uid);
                } else {
                        listen_pc = pkgmgr_client_new(PC_LISTENING);
                        if (listen_pc == NULL) {
@@ -920,10 +920,10 @@ static int __process_request(uid_t target_uid)
                        if (data.global)
                                /* disable global app for this user only*/
                                ret = pkgmgr_client_deactivate_global_app_for_uid(pc, data.pkgid,
-                                       __app_return_cb, __get_current_user_id());
+                                       __app_return_cb, NULL, __get_current_user_id());
                        else
                                /* disable app which belongs to this user */
-                               ret = pkgmgr_client_usr_deactivate_app(pc, data.pkgid, __app_return_cb, target_uid);
+                               ret = pkgmgr_client_usr_deactivate_app(pc, data.pkgid, __app_return_cb, NULL, target_uid);
                } else {
                        listen_pc = pkgmgr_client_new(PC_LISTENING);
                        if (listen_pc == NULL) {