ecore_timer_add(0, __cancel_by_interrupt, NULL);
/* Send error cb to manager */
if (VCE_ERROR_OUT_OF_NETWORK == ret) {
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_TIMED_OUT, "voice_framework.error.engine.set_recording_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_TIMED_OUT, "voice_framework.error.engine.set_recording_fail");
} else {
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), ret, "voice_framework.error.engine.set_recording_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), ret, "voice_framework.error.engine.set_recording_fail");
}
return VCD_ERROR_NONE;
}
int pid = __get_tts_played_pid();
ret = vcdc_send_error_signal_to_app(pid, error, error_msg);
} else {
- ret = vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), error, error_msg);
+ ret = vcdc_send_error_to_manager(vcd_client_manager_get_pid(), error, error_msg);
ecore_main_loop_thread_safe_call_async(__cancel_by_error, NULL);
}
/* Send error cb to manager */
int pid = vcd_client_widget_get_foreground_pid();
if (-1 != pid)
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.vcfw.collect_command_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.vcfw.collect_command_fail");
return VCD_ERROR_OPERATION_FAILED;
}
/* Send error cb to manager */
int pid = vcd_client_widget_get_foreground_pid();
if (-1 != pid)
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.engine.set_commands_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.engine.set_commands_fail");
return VCD_ERROR_OPERATION_FAILED;
}
/* Send error cb to manager */
int pid = vcd_client_widget_get_foreground_pid();
if (-1 != pid)
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), ret, "voice_framework.error.engine.start_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), ret, "voice_framework.error.engine.start_fail");
return ret;
}
/* Send error cb to manager */
int pid = vcd_client_widget_get_foreground_pid();
if (-1 != pid)
- vcdc_tidl_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.vcfw.send_rc_fail");
+ vcdc_send_error_to_manager(vcd_client_manager_get_pid(), VCD_ERROR_OPERATION_FAILED, "voice_framework.error.vcfw.send_rc_fail");
return ret;
}
#endif
extern int __setting_tidl_close_connection();
-/* For common request */
+/**
+ * For common request
+ */
static void __request_tidl_connect(vcd_client_type_e type, int pid)
{
char* type_str = NULL;
}
-
+/**
+ * Functions for sending the information to client sides
+ */
int vcdc_send_error_signal_to_app(int pid, int reason, char *err_msg)
{
if (NULL == err_msg) {
return VCD_ERROR_NONE;
}
-int vcdc_tidl_send_error_to_manager(int manager_pid, int reason, char *err_msg)
+int vcdc_send_error_to_manager(int manager_pid, int reason, char *err_msg)
{
SLOG(LOG_ERROR, TAG_VCD, "[TIDL] Send error signal to manager");