Fix enable/disable app to return request id 60/115460/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 20 Feb 2017 05:04:28 +0000 (14:04 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 20 Feb 2017 05:19:27 +0000 (14:19 +0900)
- Fix enable/disable internal APIs to return request id

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

index ec73016..5a2ab72 100644 (file)
@@ -1010,7 +1010,7 @@ API int pkgmgr_client_usr_activate_app(pkgmgr_client *pc, const char *appid,
        }
        client->cb_info_list = g_list_append(client->cb_info_list, cb_info);
 
-       return PKGMGR_R_OK;
+       return cb_info->req_id;
 }
 
 API int pkgmgr_client_activate_app(pkgmgr_client *pc, const char *appid,
@@ -1066,7 +1066,7 @@ API int pkgmgr_client_activate_global_app_for_uid(pkgmgr_client *pc,
        }
        client->cb_info_list = g_list_append(client->cb_info_list, cb_info);
 
-       return PKGMGR_R_OK;
+       return cb_info->req_id;
 }
 
 API int pkgmgr_client_usr_deactivate_app(pkgmgr_client *pc, const char *appid,
@@ -1114,7 +1114,7 @@ API int pkgmgr_client_usr_deactivate_app(pkgmgr_client *pc, const char *appid,
        }
        client->cb_info_list = g_list_append(client->cb_info_list, cb_info);
 
-       return PKGMGR_R_OK;
+       return cb_info->req_id;
 }
 
 API int pkgmgr_client_deactivate_app(pkgmgr_client *pc, const char *appid,
@@ -1170,7 +1170,7 @@ API int pkgmgr_client_deactivate_global_app_for_uid(pkgmgr_client *pc,
        }
        client->cb_info_list = g_list_append(client->cb_info_list, cb_info);
 
-       return PKGMGR_R_OK;
+       return cb_info->req_id;
 }
 
 API int pkgmgr_client_usr_clear_user_data(pkgmgr_client *pc,