Add license and manifest file
[platform/core/uifw/tts.git] / server / ttsd_server.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 __TTSD_SERVER_CORE_H_
16 #define __TTSD_SERVER_CORE_H_
17
18 #include <glib.h>
19 #include <Ecore.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /**
26 * Daemon init
27 */
28
29 /** Daemon initialize */
30 int ttsd_initialize();
31
32 Eina_Bool ttsd_cleanup_client(void *data);
33
34 /*
35 * Server API for client
36 */
37
38 int ttsd_server_initialize(int pid, int uid);
39
40 int ttsd_server_finalize(int uid);
41
42 int ttsd_server_get_support_voices(int uid, GList** voice_list);
43
44 int ttsd_server_get_current_voice(int uid, char** language, int* voice_type);
45
46 int ttsd_server_add_queue(int uid, const char* text, const char* lang, int voice_type, int speed, int utt_id);
47
48 int ttsd_server_play(int uid);
49
50 int ttsd_server_stop(int uid);
51
52 int ttsd_server_pause(int uid, int* utt_id);
53
54 /*
55 * Server API for setting
56 */
57
58 int ttsd_server_setting_initialize(int uid);
59
60 int ttsd_server_setting_finalize(int uid);
61
62 int ttsd_server_setting_get_engine_list(int uid, GList** engine_list);
63
64 int ttsd_server_setting_get_current_engine(int uid, char** engine_id);
65
66 int ttsd_server_setting_set_current_engine(int uid, const char* engine_id);
67
68 int ttsd_server_setting_get_voice_list(int uid, char** engine_id, GList** voice_list);
69
70 int ttsd_server_setting_get_default_voice(int uid, char** language, ttsp_voice_type_e* vctype);
71
72 int ttsd_server_setting_set_default_voice(int uid, const char* language, int vctype);
73
74 int ttsd_server_setting_get_default_speed(int uid, int* default_speed);
75
76 int ttsd_server_setting_set_default_speed(int uid, int default_speed);
77
78 int ttsd_server_setting_get_engine_setting(int uid, char** engine_id, GList** engine_setting_list);
79
80 int ttsd_server_setting_set_engine_setting(int uid, const char* key, const char* value);
81
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif /* __TTSD_SERVER_CORE_H_ */