Update year information of license boilerplate
[platform/core/uifw/multi-assistant-service.git] / src / multi_assistant_dbus.h
1 /*
2  * Copyright 2018-2019 Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 #ifndef __MULTI_ASSISTANT_DBUS_h__
18 #define __MULTI_ASSISTANT_DBUS_h__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 int mas_dbus_open_connection();
25
26 int mas_dbus_close_connection();
27
28 int masc_dbus_send_hello(int pid);
29
30 int masc_dbus_send_error_message(int reason, const char* err_msg);
31
32 int masc_dbus_send_streaming_audio_data(int pid, int event, unsigned char* data, unsigned int data_size);
33
34 int masc_dbus_active_state_change(int pid, int state);
35
36 int masc_dbus_send_preprocessing_information(int pid, const char* app_id);
37
38 int masc_ui_dbus_send_hello(void);
39
40 int masc_ui_dbus_send_asr_result(int pid, int event, char* asr_result);
41
42 int masc_ui_dbus_send_result(int pid, const char* display_text, const char* utterance_text, const char* result_json);
43
44 int masc_ui_dbus_change_assistant(char* app_id);
45
46 int masc_ui_dbus_send_error_message(int reason, const char* err_msg);
47
48 int masc_ui_dbus_send_recognition_result(int pid, int result);
49
50 int masc_ui_dbus_enable_common_ui(int enable);
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif  /* __MULTI_ASSISTANT_DBUS_h__ */