Fix enable/disable app to return request id 27/117027/2 accepted/tizen/3.0/common/20170306.135445 accepted/tizen/3.0/ivi/20170305.222710 accepted/tizen/3.0/mobile/20170305.222624 accepted/tizen/3.0/tv/20170305.222648 accepted/tizen/3.0/wearable/20170305.222701 submit/tizen/20170302.124027 submit/tizen_3.0/20170303.015631
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 20 Feb 2017 05:04:28 +0000 (14:04 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 2 Mar 2017 10:29:30 +0000 (02:29 -0800)
- 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 2c42634..e23748a 100644 (file)
@@ -1018,7 +1018,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,
@@ -1140,7 +1140,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,
@@ -1188,7 +1188,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,
@@ -1311,7 +1311,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,