2 * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __VCD_TIDL_h__
19 #define __VCD_TIDL_h__
28 VCD_CLIENT_TYPE_NORMAL,
29 VCD_CLIENT_TYPE_WIDGET,
30 VCD_CLIENT_TYPE_MANAGER
33 int vcd_tidl_open_connection();
35 int vcd_tidl_close_connection();
37 int vcdc_send_hello(int pid, vcd_client_type_e type);
39 int vcdc_send_set_volume(int manger_pid, float volume);
41 int vcdc_send_show_tooltip(int pid, bool show);
43 int vcdc_send_result(int pid, int manager_pid, int cmd_type);
45 int vcdc_send_pre_result_to_manager(int manager_pid, int event, const char* pre_result);
47 int vcdc_send_specific_engine_result_to_manager(int manager_pid, const char* engine_app_id, const char* event, const char* result);
49 int vcdc_send_result_to_manager(int manger_pid, int result_type);
51 int vcdc_send_speech_detected(int manger_pid);
53 // int vcdc_tidl_send_error(int reason, char *err_msg);
55 int vcdc_send_error_to_manager(int manager_pid, int reason, char *err_msg);
57 int vcdc_send_error_signal_to_app(int pid, int reason, char *err_msg);
59 int vcdc_send_manager_pid(int manager_pid);
61 int vcdc_send_service_state(vcd_state_e state);
63 int vcdc_send_dialog(int manger_pid, int pid, const char* disp_text, const char* utt_text, int continuous);
65 int vcdc_send_request_set_private_data(int pid, const char* key, const char* data);
67 int vcdc_send_request_get_private_data(int pid, const char* key, char** data);
69 int vcdc_send_asr_result(int pid, int event, const char* asr_result, int cmd_type, bool* is_consumed);
71 void vcdc_send_request_set_foreground(int pid, int value);
74 int vcdc_send_request_auth_enable(int pid);
76 int vcdc_send_request_auth_disable(int pid);
78 int vcdc_send_request_auth_start(int pid);
80 int vcdc_send_request_auth_stop(int pid);
82 int vcdc_send_request_auth_cancel(int pid);
84 /* for TTS feedback */
85 int vcdc_send_feedback_audio_format_to_manager(int manager_pid, int rate, vc_audio_channel_e channel, vce_audio_type_e audio_type);
87 int vcdc_send_feedback_streaming(int pid, int utt_id, vc_feedback_event_e event, char* buffer, int len);
89 int vcdc_send_feedback_streaming_to_manager(int manager_pid, int pid, int utt_id, vc_feedback_event_e event, char* buffer, int len);
96 #endif /* __VCD_TIDL_h__ */