Update version to 1.70.7
[platform/core/uifw/voice-control.git] / client / vc_mgr_tidl.h
1 /*
2 * Copyright (c) 2022 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_MGR_TIDL_H_
19 #define __VC_MGR_TIDL_H_
20
21 #include "voice_control_manager_internal.h"
22
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 int vc_mgr_tidl_open_connection();
29
30 int vc_mgr_tidl_close_connection();
31
32
33 int vc_mgr_tidl_request_hello();
34
35 int vc_mgr_tidl_request_initialize(int pid, int audio_streaming_mode, int* service_state, int* foreground, int* daemon_pid);
36
37 int vc_mgr_tidl_request_finalize(int pid);
38
39 int vc_mgr_tidl_request_set_command(int pid);
40
41 int vc_mgr_tidl_request_unset_command(int pid);
42
43 int vc_mgr_tidl_request_demandable_client(int pid);
44
45 int vc_mgr_tidl_request_set_audio_type(int pid, const char* audio_type);
46
47 int vc_mgr_tidl_request_get_audio_type(int pid, char** audio_type);
48
49 int vc_mgr_tidl_request_set_private_data(int pid, const char* key, const char* data);
50
51 int vc_mgr_tidl_request_get_private_data(int pid, const char* key, char** data);
52
53 int vc_mgr_tidl_request_set_client_info(int pid);
54
55 int vc_mgr_tidl_request_set_domain(int pid, const char* domain);
56
57 int vc_mgr_tidl_request_do_action(int pid, vc_send_event_type_e type, char* send_event);
58
59 int vc_mgr_tidl_request_start(int pid, int recognition_mode, bool exclusive_command_option, bool start_by_client, int disabled_cmd_type);
60
61 int vc_mgr_tidl_request_stop(int pid);
62
63 int vc_mgr_tidl_request_cancel(int pid);
64
65 int vc_mgr_tidl_send_result(int pid, int cmd_type, int result_id);
66
67 int vc_mgr_tidl_send_result_selection(int pid);
68
69 int vc_mgr_tidl_send_specific_engine_request(int pid, const char* engine_app_id, const char* event, const char* request);
70
71 int vc_mgr_tidl_request_start_feedback(int pid);
72
73 int vc_mgr_tidl_request_stop_feedback(int pid);
74
75 int vc_mgr_tidl_send_utterance_status(int pid, int utt_id, vc_tts_utterance_status_e utt_status);
76
77 int vc_mgr_tidl_send_audio_streaming(int pid, vc_audio_streaming_event_e event, unsigned char* buffer, unsigned int len);
78
79 int vc_mgr_tidl_request_set_audio_streaming_mode(int pid, vc_audio_streaming_mode_e mode);
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif /* __VC_MGR_TIDL_H_ */