/*
-* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+* Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
#include <Ecore.h>
-/* Main of TTS Daemon */
-int main()
-{
- SLOG(LOG_DEBUG, TAG_TTSD, " ");
- SLOG(LOG_DEBUG, TAG_TTSD, " ");
- SLOG(LOG_DEBUG, TAG_TTSD, "===== TTS DAEMON INITIALIZE");
- if (!ecore_init()) {
- SLOG(LOG_ERROR, TAG_TTSD, "[Main ERROR] fail ecore_init() \n");
- return -1;
- }
-
- if (0 != ttsd_initialize()) {
- printf("Fail to initialize tts-daemon \n");
- SLOG(LOG_ERROR, TAG_TTSD, "[Main ERROR] fail to initialize tts-daemon \n");
- return EXIT_FAILURE;
- }
-
- if (0 != ttsd_dbus_open_connection()) {
- printf("Fail to initialize IPC connection \n");
- SLOG(LOG_ERROR, TAG_TTSD, "[Main ERROR] fail to open dbus connection \n");
- return EXIT_FAILURE;
- }
-
- if (0 != ttsd_network_initialize()) {
- SLOG(LOG_ERROR, TAG_TTSD, "[Main ERROR] fail to initialize network \n");
- return EXIT_FAILURE;
- }
-
- SLOG(LOG_DEBUG, TAG_TTSD, "[Main] tts-daemon start...\n");
- SLOG(LOG_DEBUG, TAG_TTSD, "=====");
- SLOG(LOG_DEBUG, TAG_TTSD, " ");
- SLOG(LOG_DEBUG, TAG_TTSD, " ");
-
- printf("TTS-Daemon Start...\n");
-
- ecore_main_loop_begin();
-
- ecore_shutdown();
+#define CLIENT_CLEAN_UP_TIME 500
- ttsd_dbus_close_connection();
+static Ecore_Timer* g_check_client_timer = NULL;
- ttsd_network_finalize();
-
- return 0;
+const char* tts_tag()
+{
+ return "ttsd";
}
+ttsd_mode_e ttsd_get_mode()
+{
+ return TTSD_MODE_DEFAULT;
+}