From: hyunho Date: Thu, 20 Jun 2019 01:30:54 +0000 (+0900) Subject: Adds sync launch request result param X-Git-Tag: submit/tizen/20190712.072804~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=721371ea24715ae8bb1523ebd2110a1cc2fa65a0;p=platform%2Fcore%2Fappfw%2Fcomponent-based-application.git Adds sync launch request result param - component_send_launch_request_sync Change-Id: I7f1bce4d3034845648db8f9d9611ca03ff7a9b20 Signed-off-by: hyunho --- diff --git a/component_based/efl_base/api/component_common.h b/component_based/efl_base/api/component_common.h index 2067145..9f674b2 100644 --- a/component_based/efl_base/api/component_common.h +++ b/component_based/efl_base/api/component_common.h @@ -93,7 +93,8 @@ int component_send_launch_request_async(component_h component, int component_send_launch_request_sync(component_h component, app_control_h app_control, - app_control_h *reply); + app_control_h *reply, + app_control_result_e *result); int component_finish(component_h component); diff --git a/component_based/efl_base/stub.cc b/component_based/efl_base/stub.cc index eec3a7e..a2a074a 100644 --- a/component_based/efl_base/stub.cc +++ b/component_based/efl_base/stub.cc @@ -621,15 +621,14 @@ static int __app_control_send_launch_request_async( static int __app_control_send_launch_request_sync( const char* inst_id, app_control_h app_control, - app_control_h* reply) { + app_control_h* reply, app_control_result_e* result) { int r = app_control_set_caller_instance_id(app_control, inst_id); if (r != APP_CONTROL_ERROR_NONE) { LOGE("Failed to set caller instance ID"); return __app_control_error_convert(r); } - app_control_result_e result; - r = app_control_send_launch_request_sync(app_control, reply, &result); + r = app_control_send_launch_request_sync(app_control, reply, result); if (r != APP_CONTROL_ERROR_NONE) { LOGE("Failed to send launch request async. error(%d)", r); return __app_control_error_convert(r); @@ -665,8 +664,9 @@ extern "C" EXPORT_API int component_send_launch_request_async( extern "C" EXPORT_API int component_send_launch_request_sync( component_h h, app_control_h app_control, - app_control_h* reply) { - if (h == nullptr || app_control == nullptr || reply == nullptr) { + app_control_h* reply, app_control_result_e* result) { + if (h == nullptr || app_control == nullptr || reply == nullptr || + result == nullptr) { LOGE("Invalid parameter"); return COMPONENT_ERROR_INVALID_PARAMETER; } @@ -674,7 +674,7 @@ extern "C" EXPORT_API int component_send_launch_request_sync( component_based::Component* component = static_cast(h); int r = __app_control_send_launch_request_sync( - component->GetInstanceID().c_str(), app_control, reply); + component->GetInstanceID().c_str(), app_control, reply, result); if (r != COMPONENT_ERROR_NONE) { LOGE("Failed to send launch request sync. error(%d)", r); return r;