Fix log characters
[platform/core/uifw/tts.git] / server / ttsd_dbus.c
old mode 100755 (executable)
new mode 100644 (file)
index 4b2ab38..76bc2ea
@@ -138,10 +138,10 @@ int ttsdc_send_message(int pid, int uid, int data, const char *method)
                method);                        /* name of the signal */
 
        if (NULL == msg) {
-               SLOG(LOG_ERROR, tts_tag(), "<<<< [Dbus ERROR] Fail to create message : %s", method);
+               SLOG(LOG_ERROR, tts_tag(), "[Dbus ERROR] Fail to create message : %s", method);
                return -1;
        } else {
-               SLOG(LOG_DEBUG, tts_tag(), "<<<< [Dbus] Send %s message : uid(%d) data(%d)", method, uid, data);
+               SLOG(LOG_DEBUG, tts_tag(), "[Dbus] Send %s message : uid(%d) data(%d)", method, uid, data);
        }
 
        dbus_message_append_args(msg, DBUS_TYPE_INT32, &uid, DBUS_TYPE_INT32, &data, DBUS_TYPE_INVALID);
@@ -270,6 +270,15 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle
                } else if (dbus_message_is_method_call(msg, g_service_interface, TTS_METHOD_GET_PRIVATE_DATA)) {
                        ttsd_dbus_server_get_private_data(g_conn_listener, msg);
 
+               } else if (dbus_message_is_method_call(msg, g_service_interface, TTS_METHOD_PLAY_PCM)) {
+                       ttsd_dbus_server_play_pcm(g_conn_listener, msg);
+
+               } else if (dbus_message_is_method_call(msg, g_service_interface, TTS_METHOD_STOP_PCM)) {
+                       ttsd_dbus_server_stop_pcm(g_conn_listener, msg);
+
+               } else if (dbus_message_is_method_call(msg, g_service_interface, TTS_METHOD_ADD_PCM)) {
+                       ttsd_dbus_server_add_pcm(g_conn_listener, msg);
+
                } else {
                        SLOG(LOG_DEBUG, tts_tag(), "Message is NOT valid");
                        /* Invalid method */
@@ -315,7 +324,7 @@ void __ttsd_dbus_connection_free()
 
 int ttsd_dbus_open_connection()
 {
-       SLOG(LOG_DEBUG, tts_tag(), "=== start dbus open connection");
+       SLOG(LOG_DEBUG, tts_tag(), "@@@ start dbus open connection");
        DBusError err;
        dbus_error_init(&err);
 
@@ -436,13 +445,13 @@ int ttsd_dbus_open_connection()
                return -1;
        }
 
-       SLOG(LOG_DEBUG, tts_tag(), "===");
+       SLOG(LOG_DEBUG, tts_tag(), "@@@");
        return 0;
 }
 
 int ttsd_dbus_close_connection()
 {
-       SLOG(LOG_DEBUG, tts_tag(), "=== start dbus close connection");
+       SLOG(LOG_DEBUG, tts_tag(), "@@@ start dbus close connection");
        DBusError err;
        dbus_error_init(&err);
 
@@ -462,7 +471,7 @@ int ttsd_dbus_close_connection()
        __ttsd_dbus_connection_free();
        __ttsd_dbus_service_free();
 
-       SLOG(LOG_DEBUG, tts_tag(), "===");
+       SLOG(LOG_DEBUG, tts_tag(), "@@@");
 
        return 0;
 }