Merge "Fix the size of app id" into tizen
[platform/core/uifw/tts.git] / server / ttsd_config.h
old mode 100755 (executable)
new mode 100644 (file)
index 4f865ac..26ad74f
@@ -1,5 +1,5 @@
 /*
-*  Copyright (c) 2012, 2013 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
 #ifndef __TTSD_CONFIG_H_
 #define __TTSD_CONFIG_H_
 
+#include <stdbool.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef void (*ttsd_config_lang_changed_cb)(const char* langauge, int type);
+typedef enum {
+       TTS_CONFIG_TYPE_ENGINE,
+       TTS_CONFIG_TYPE_VOICE,
+       TTS_CONFIG_TYPE_SPEED,
+       TTS_CONFIG_TYPE_PITCH
+} tts_config_type_e;
+
+typedef void (*ttsd_config_changed_cb)(tts_config_type_e type, const char* str_param, int int_param);
 
-typedef void (*ttsd_config_speed_changed_cb)(int speed);
+typedef void (*ttsd_config_screen_reader_changed_cb)(bool value);
 
-int ttsd_config_initialize(ttsd_config_lang_changed_cb lang_cb, ttsd_config_speed_changed_cb speed_cb);
+int ttsd_config_initialize(ttsd_config_changed_cb config_cb);
 
 int ttsd_config_finalize();
 
-int ttsd_config_update_language();
+int ttsd_config_set_screen_reader_callback(ttsd_config_screen_reader_changed_cb sr_cb);
 
 int ttsd_config_get_default_engine(char** engine_id);
 
@@ -35,11 +44,9 @@ int ttsd_config_set_default_engine(const char* engine_id);
 
 int ttsd_config_get_default_voice(char** language, int* type);
 
-int ttsd_config_set_default_voice(const char* langauge, int type);
-
 int ttsd_config_get_default_speed(int* speed);
 
-int ttsd_config_set_default_speed(int speed);
+int ttsd_config_get_default_pitch(int* pitch);
 
 int ttsd_config_save_error(int uid, int uttid, const char* lang, int vctype, const char* text, 
                           const char* func, int line, const char* message);