Change internal function to static
[platform/core/uifw/tts.git] / server / ttsd_config.h
1 /*
2 *  Copyright (c) 2011-2016 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 __TTSD_CONFIG_H_
16 #define __TTSD_CONFIG_H_
17
18 #include <stdbool.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 typedef enum {
25         TTS_CONFIG_TYPE_ENGINE,
26         TTS_CONFIG_TYPE_VOICE,
27         TTS_CONFIG_TYPE_SPEED,
28         TTS_CONFIG_TYPE_PITCH,
29         TTS_CONFIG_TYPE_BACKGROUND_VOLUME_RATIO
30 } tts_config_type_e;
31
32 typedef void (*ttsd_config_changed_cb)(tts_config_type_e type, const char* str_param, int int_param, double double_param);
33
34 typedef void (*ttsd_config_screen_reader_changed_cb)(bool value);
35
36 int ttsd_config_initialize(ttsd_config_changed_cb config_cb);
37
38 int ttsd_config_finalize();
39
40 int ttsd_config_set_screen_reader_callback(ttsd_config_screen_reader_changed_cb sr_cb);
41
42 int ttsd_config_get_default_engine(char** engine_id);
43
44 int ttsd_config_set_default_engine(const char* engine_id);
45
46 int ttsd_config_get_default_voice(char** language, int* type);
47
48 int ttsd_config_get_default_speed(int* speed);
49
50 int ttsd_config_get_default_pitch(int* pitch);
51
52 int ttsd_config_get_bg_volume_ratio(double* ratio);
53
54 int ttsd_config_save_error(int uid, int uttid, const char* lang, int vctype, const char* text, 
55                            const char* func, int line, const char* message);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif /* __TTSD_CONFIG_H_ */