Adds sync launch request result param 10/208210/1
authorhyunho <hhstark.kang@samsung.com>
Thu, 20 Jun 2019 01:30:54 +0000 (10:30 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 20 Jun 2019 01:30:54 +0000 (10:30 +0900)
- component_send_launch_request_sync

Change-Id: I7f1bce4d3034845648db8f9d9611ca03ff7a9b20
Signed-off-by: hyunho <hhstark.kang@samsung.com>
component_based/efl_base/api/component_common.h
component_based/efl_base/stub.cc

index 20671453e60a93f2cfde221930d7964d26ec236d..9f674b2fd693e24def226727e6ba2170613bd161 100644 (file)
@@ -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);
 
index eec3a7ef4c701baa54fba8b793605edaa57eb762..a2a074aaab02bcd5eec4826a8897c7e14ee9bb1e 100644 (file)
@@ -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<component_based::Component*>(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;