Update hello protocol
[platform/core/uifw/tts.git] / server / ttsd_dbus_server.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_DBUS_SERVER_h__
16 #define __TTSD_DBUS_SERVER_h__
17
18 #include <dbus/dbus.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 int ttsd_dbus_server_hello(DBusConnection* conn, DBusMessage* msg);
25
26 int ttsd_dbus_server_hello_sync(DBusConnection* conn, DBusMessage* msg);
27
28 /*
29 * Dbus Server functions for APIs
30 */ 
31
32 int ttsd_dbus_server_initialize(DBusConnection* conn, DBusMessage* msg);
33
34 int ttsd_dbus_server_finalize(DBusConnection* conn, DBusMessage* msg);
35
36 int ttsd_dbus_server_get_support_voices(DBusConnection* conn, DBusMessage* msg);
37
38 int ttsd_dbus_server_get_current_voice(DBusConnection* conn, DBusMessage* msg);
39
40 int ttsd_dbus_server_add_text(DBusConnection* conn, DBusMessage* msg);
41
42 int ttsd_dbus_server_play(DBusConnection* conn, DBusMessage* msg);
43
44 int ttsd_dbus_server_stop(DBusConnection* conn, DBusMessage* msg);
45
46 int ttsd_dbus_server_pause(DBusConnection* conn, DBusMessage* msg);
47
48 int ttsd_dbus_server_set_private_data(DBusConnection* conn, DBusMessage* msg);
49
50 int ttsd_dbus_server_get_private_data(DBusConnection* conn, DBusMessage* msg);
51
52 int ttsd_dbus_server_play_pcm(DBusConnection* conn, DBusMessage* msg);
53
54 int ttsd_dbus_server_stop_pcm(DBusConnection* conn, DBusMessage* msg);
55
56 int ttsd_dbus_server_add_pcm(DBusConnection* conn, DBusMessage* msg);
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62
63 #endif  /* __TTSD_DBUS_SERVER_h__ */