d87d290890e5951eae413a917bb5dfbe3305ac16
[framework/uifw/voice/stt.git] / server / sttd_config.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved 
3 *  Licensed under the Apache License, Version 2.0 (the "License");
4 *  you may not use this file except in compliance with the License.
5 *  You may obtain a copy of the License at
6 *  http://www.apache.org/licenses/LICENSE-2.0
7 *  Unless required by applicable law or agreed to in writing, software
8 *  distributed under the License is distributed on an "AS IS" BASIS,
9 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 *  See the License for the specific language governing permissions and
11 *  limitations under the License.
12 */
13
14
15 #ifndef __STTD_CONFIG_H_
16 #define __STTD_CONFIG_H_
17
18 #include <stdbool.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #define STTD_CONFIG_PREFIX "db/sttd/"
25
26 #define CONFIG_KEY_DEFAULT_ENGINE_ID    STTD_CONFIG_PREFIX"engine"
27 #define CONFIG_KEY_DEFAULT_LANGUAGE     STTD_CONFIG_PREFIX"language"
28 #define CONFIG_KEY_PROFANITY_FILTER     STTD_CONFIG_PREFIX"profanity"
29 #define CONFIG_KEY_PUNCTUATION_OVERRIDE STTD_CONFIG_PREFIX"punctuation"
30 #define CONFIG_KEY_SILENCE_DETECTION    STTD_CONFIG_PREFIX"silence"
31
32
33 /*
34 * stt-daemon config
35 */
36
37 int sttd_config_get_char_type(const char* key, char** value);
38
39 int sttd_config_set_char_type(const char* key, const char* value);
40
41 int sttd_config_get_bool_type(const char* key, bool* value);
42
43 int sttd_config_set_bool_type(const char* key, const bool value);
44
45
46 /*
47 * interface for engine plug-in
48 */
49
50 int sttd_config_set_persistent_data(const char* engine_id, const char* key, const char* value);
51
52 int sttd_config_get_persistent_data(const char* engine_id, const char* key, char** value);
53
54 int sttd_config_remove_persistent_data(const char* engine_id, const char* key);
55
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif /* __STTD_CONFIG_H_ */