Add capmgr_app_control_get_device().
Change-Id: Ie3a86199d2f61aa1027bdb9d10226e68b1f83495
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
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)