#include "ttse.h"
-#define CLIENT_CLEAN_UP_TIME 500
-
-static Ecore_Timer* g_check_client_timer = NULL;
-
static ttsd_mode_e g_tts_mode = TTSD_MODE_DEFAULT;
const char* tts_tag()
return "ttsdnoti";
} else if (TTSD_MODE_SCREEN_READER == g_tts_mode) {
return "ttsdsr";
+ } else if (TTSD_MODE_INTERRUPT == g_tts_mode) {
+ return "ttsdinterrupt";
} else {
return "ttsd";
}
mode = TTSD_MODE_NOTIFICATION;
} else if (!strcmp("sr", val)) {
mode = TTSD_MODE_SCREEN_READER;
+ } else if (!strcmp("interrupt", val)) {
+ mode = TTSD_MODE_INTERRUPT;
} else {
SLOG(LOG_WARN, tts_tag(), "[WARNING] mode (%s)", val);
}
SLOG(LOG_WARN, tts_tag(), "[WARNING] Fail to initialize network");
}
- g_check_client_timer = ecore_timer_add(CLIENT_CLEAN_UP_TIME, ttsd_cleanup_client, NULL);
- if (NULL == g_check_client_timer) {
- SLOG(LOG_WARN, tts_tag(), "[WARNING] Fail to create timer");
- }
-
- SLOG(LOG_DEBUG, tts_tag(), "====");
- SLOG(LOG_DEBUG, tts_tag(), "");
+ SLOG(LOG_DEBUG, tts_tag(), "@@@");
return TTSE_ERROR_NONE;
}
{
int ret;
- if (NULL == msg) {
- SLOG(LOG_ERROR, tts_tag(), "[ERROR] Input parameter is null");
- return TTSE_ERROR_INVALID_PARAMETER;
- }
-
ret = ttsd_send_error(error, msg);
if (0 != ret) {