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);
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;
}
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;