From: Sangyoon Jang Date: Thu, 25 Oct 2018 01:16:09 +0000 (+0900) Subject: Add a missing API X-Git-Tag: submit/submit/tizen/20190214.065356/20190214.070335~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc51a4f532e7a20d3ceaffeaf092b5895abf5f14;p=platform%2Fcore%2Fapi%2Fcapability-manager.git Add a missing API Add capmgr_app_control_get_device(). Change-Id: Ie3a86199d2f61aa1027bdb9d10226e68b1f83495 Signed-off-by: Sangyoon Jang --- diff --git a/src/client.cc b/src/client.cc index 5356173..a2f05c3 100644 --- a/src/client.cc +++ b/src/client.cc @@ -252,6 +252,18 @@ API int capmgr_app_control_destroy(capmgr_app_control_h app_control) { return CAPMGR_ERROR_NONE; } +API int capmgr_app_control_get_device(capmgr_app_control_h app_control, + capmgr_device_h* device) { + if (!app_control || !device) + return CAPMGR_ERROR_INVALID_PARAMETER; + + int ret = capmgr_device_clone(app_control->device, device); + if (ret != CAPMGR_ERROR_NONE) + return ret; + + return CAPMGR_ERROR_NONE; +} + API int capmgr_app_control_get_operation(capmgr_app_control_h app_control, char** operation) { if (!app_control || !operation)