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.
15 #ifndef __STTD_CONFIG_H_
16 #define __STTD_CONFIG_H_
24 #define STTD_CONFIG_PREFIX "db/sttd/"
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"
37 int sttd_config_get_char_type(const char* key, char** value);
39 int sttd_config_set_char_type(const char* key, const char* value);
41 int sttd_config_get_bool_type(const char* key, bool* value);
43 int sttd_config_set_bool_type(const char* key, const bool value);
47 * interface for engine plug-in
50 int sttd_config_set_persistent_data(const char* engine_id, const char* key, const char* value);
52 int sttd_config_get_persistent_data(const char* engine_id, const char* key, char** value);
54 int sttd_config_remove_persistent_data(const char* engine_id, const char* key);
61 #endif /* __STTD_CONFIG_H_ */