2 * Copyright 2018-2019 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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 __MULTI_ASSISTANT_CONFIG_H__
19 #define __MULTI_ASSISTANT_CONFIG_H__
22 #include <tzplatform_config.h>
29 #define MAX_WAKEUP_LIST_NUM 32
30 #define MAX_SUPPORTED_LANGUAGE_NUM 128
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"
46 /**************************************************************************************
47 *** Definitions for ETC
48 *************************************************************************************/
49 #define MA_RETRY_COUNT 5
51 #define MA_ASSISTANT_INFO tzplatform_mkpath(TZ_USER_HOME, "share/.multiassistant/ma/1.0/assistant-info")
56 const char* icon_path;
57 const char* wakeup_list[MAX_WAKEUP_LIST_NUM];
58 const char* wakeup_language[MAX_WAKEUP_LIST_NUM];
60 const char* supported_lang[MAX_SUPPORTED_LANGUAGE_NUM];
62 const char* wakeup_engine;
63 bool custom_ui_option;
64 } ma_assistant_info_s;
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);
80 #endif /* __MULTI_ASSISTANT_CONFIG_H__ */