Add to check if app agreed or not
[platform/core/uifw/tts.git] / server / ttsd_data.h
index 2e2e187..afbd213 100644 (file)
@@ -1,5 +1,5 @@
 /*
-*  Copyright (c) 2011-2016 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_DATA_H_
 #define __TTSD_DATA_H_
 
-#include "ttsp.h"
+#include "ttse.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+
 typedef enum {
        APP_STATE_CREATED = 0,
        APP_STATE_READY,
        APP_STATE_PLAYING,
        APP_STATE_PAUSED
-} app_state_e;
+} app_tts_state_e;
 
 typedef struct {
        int     utt_id; 
@@ -41,8 +42,8 @@ typedef struct {
        void*           data;
        unsigned int    data_size;
 
-       ttsp_result_event_e     event;
-       ttsp_audio_type_e       audio_type;
+       ttse_result_event_e     event;
+       ttse_audio_type_e       audio_type;
        int                     rate;
        int                     channels;
 } sound_data_s;
@@ -80,14 +81,14 @@ int ttsd_data_set_used_voice(int uid, const char* lang, int type);
 
 int ttsd_data_reset_used_voice(int uid, ttsd_used_voice_cb callback);
 
-int ttsd_data_get_client_state(int pid, app_state_e* state);
+int ttsd_data_get_client_state(int pid, app_tts_state_e* state);
 
-int ttsd_data_set_client_state(int pid, app_state_e state);
+int ttsd_data_set_client_state(int pid, app_tts_state_e state);
 
 
 int ttsd_data_get_current_playing();
 
-typedef bool(*ttsd_data_get_client_cb)(int pid, int uid, app_state_e state, void* user_data);
+typedef bool(*ttsd_data_get_client_cb)(int pid, int uid, app_tts_state_e state, void* user_data);
 
 int ttsd_data_foreach_clients(ttsd_data_get_client_cb callback, void* user_data);