return ret;
}
+static void __app_control_reply_cb(app_control_h request, app_control_h reply,
+ app_control_result_e result, void *user_data)
+{
+ dlog_print(DLOG_INFO, LOG_TAG, "Result: %d", result);
+ if (result == APP_CONTROL_RESULT_SUCCEEDED)
+ normal_exit(0);
+ else
+ normal_exit(1);
+}
+
+static void __app_control_result_cb_with_reply(app_control_h request,
+ app_control_error_e result, void *user_data)
+{
+ dlog_print(DLOG_INFO, LOG_TAG, "Result: %d", result);
+ if (result != APP_CONTROL_ERROR_NONE)
+ normal_exit(1);
+}
+
/**
* @testcase utc_application_app_control_send_launch_request_async_p2
goto end;
}
- ret = app_control_set_app_id(handle, "org.tizen.helloworld");
+ ret = app_control_set_app_id(handle, "org.example.reply");
if (ret != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, LOG_TAG, "Failed to set application ID");
normal_exit(1);
goto end;
}
- ret = app_control_send_launch_request_async(handle, __app_control_result_cb,
- dts_app_control_reply_cb, NULL);
+ ret = app_control_send_launch_request_async(handle,
+ __app_control_result_cb_with_reply,
+ __app_control_reply_cb, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send launch request async");
normal_exit(1);