Update year information of license boilerplate
[platform/core/uifw/multi-assistant-service.git] / inc / multi_assistant_config.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
18 #ifndef __MULTI_ASSISTANT_CONFIG_H__
19 #define __MULTI_ASSISTANT_CONFIG_H__
20
21 #include <tizen.h>
22 #include <tzplatform_config.h>
23
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28
29 #define MAX_WAKEUP_LIST_NUM 32
30 #define MAX_SUPPORTED_LANGUAGE_NUM 128
31
32 /**************************************************************************************
33  *** Definitions for xml file
34  *************************************************************************************/
35 #define MA_TAG_ASSISTANT_BASE                                   "multi-assistant"
36 #define MA_TAG_ASSISTANT_NAME                                   "name"
37 #define MA_TAG_ASSISTANT_APPID                                  "appid"
38 #define MA_TAG_ASSISTANT_ICON_PATH                              "icon-path"
39 #define MA_TAG_ASSISTANT_LANGUAGE_SET                   "languages"
40 #define MA_TAG_ASSISTANT_LANGUAGE                               "language"
41 #define MA_TAG_ASSISTANT_WAKEUP_WORD_SET                "wakeup-words"
42 #define MA_TAG_ASSISTANT_WAKEUP_WORD                    "wakeup-word"
43 #define MA_TAG_ASSISTANT_WAKEUP_ENGINE_APPID    "wakeup-engine-appid"
44 #define MA_TAG_ASSISTANT_CUSTOM_UI                              "custom-ui"
45
46 /**************************************************************************************
47  *** Definitions for ETC
48  *************************************************************************************/
49 #define MA_RETRY_COUNT  5
50
51 #define MA_ASSISTANT_INFO               tzplatform_mkpath(TZ_USER_HOME, "share/.multiassistant/ma/1.0/assistant-info")
52
53 typedef struct {
54         const char* app_id;
55         const char* name;
56         const char* icon_path;
57         const char* wakeup_list[MAX_WAKEUP_LIST_NUM];
58         const char* wakeup_language[MAX_WAKEUP_LIST_NUM];
59         int cnt_wakeup;
60         const char* supported_lang[MAX_SUPPORTED_LANGUAGE_NUM];
61         int cnt_lang;
62         const char* wakeup_engine;
63         bool custom_ui_option;
64 } ma_assistant_info_s;
65
66 typedef int (*mas_config_assistant_info_cb)(const char* appid, const char* name, const char* icon_path,
67         const char* wakeup_list[], const char* wakeup_language[], int cnt_wakeup,
68         const char* supported_lang[], int cnt_lang,
69         const char* wakeup_engine, bool custom_ui_option, void* user_data);
70 int mas_config_get_assistant_info(mas_config_assistant_info_cb callback, void* user_data);
71
72 #ifdef __cplusplus
73 }
74 #endif
75
76 /**
77  * @}
78  */
79
80 #endif /* __MULTI_ASSISTANT_CONFIG_H__ */