Fix build error on gcc-13 Build
[platform/core/uifw/voice-control.git] / client / vc_tidl.h
1 /*
2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd All Rights Reserved
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17
18 #ifndef __VC_TIDL_H_
19 #define __VC_TIDL_H_
20
21 #include "voice_control_common.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 int vc_tidl_open_connection();
28
29 int vc_tidl_close_connection();
30
31
32 int vc_tidl_request_hello();
33
34 int vc_tidl_request_hello_sync();
35
36 int vc_tidl_request_initialize(int pid, int* mgr_pid, int* service_state, int* daemon_pid);
37
38 int vc_tidl_request_finalize(int pid);
39
40 int vc_tidl_request_set_command(int pid, vc_cmd_type_e cmd_type);
41
42 int vc_tidl_request_unset_command(int pid, vc_cmd_type_e cmd_type);
43
44 int vc_tidl_request_set_foreground(int pid, bool value);
45
46 int vc_tidl_request_set_server_dialog(int pid, const char* app_id, const char* credential);
47
48 int vc_tidl_request_request_dialog(int pid, const char* disp_text, const char* utt_text, bool continuous);
49
50 int vc_tidl_request_is_system_command_valid(int pid, bool* is_sys_cmd_valid);
51
52 #if 0
53 int vc_tidl_request_start(int pid, int silence);
54
55 int vc_tidl_request_stop(int pid);
56
57 int vc_tidl_request_cancel(int pid);
58
59 int vc_tidl_request_set_exclusive_command(int pid, bool value);
60 #endif
61
62 /* Authority */
63 int vc_tidl_request_auth_enable(int pid, int mgr_pid);
64
65 int vc_tidl_request_auth_disable(int pid, int mgr_pid);
66
67 int vc_tidl_request_auth_start(int pid, int mgr_pid);
68
69 int vc_tidl_request_auth_stop(int pid, int mgr_pid);
70
71 int vc_tidl_request_auth_cancel(int pid, int mgr_pid);
72
73 /* tts feedback */
74
75 int vc_tidl_request_request_tts(int pid, const char* text, const char* language, bool to_vcm, int* utt_id);
76
77 int vc_tidl_request_cancel_tts(int pid, int utt_id);
78
79 int vc_tidl_request_get_tts_audio_format(int pid, int* rate, vc_audio_channel_e* channel, vc_audio_type_e* audio_type);
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif /* __VC_TIDL_H_ */