Add to check if app agreed or not
[platform/core/uifw/tts.git] / server / ttsd_data.cpp
index fa8226f..93bbd50 100644 (file)
@@ -31,7 +31,7 @@ typedef struct
        int             pid;
        int             uid;
        int             utt_id_stopped;
-       app_state_e     state;
+       app_tts_state_e state;
 
        std::list<speak_data_s*> m_speak_data;
        std::list<sound_data_s*> m_wav_data;
@@ -544,7 +544,7 @@ int ttsd_data_clear_data(int uid)
        return TTSD_ERROR_NONE;
 }
 
-int ttsd_data_get_client_state(int uid, app_state_e* state)
+int ttsd_data_get_client_state(int uid, app_tts_state_e* state)
 {
        int index = 0;
 
@@ -559,7 +559,7 @@ int ttsd_data_get_client_state(int uid, app_state_e* state)
        return TTSD_ERROR_NONE;
 }
 
-int ttsd_data_set_client_state(int uid, app_state_e state)
+int ttsd_data_set_client_state(int uid, app_tts_state_e state)
 {
        int index = 0;
 
@@ -694,7 +694,7 @@ int ttsd_data_save_error_log(int uid, FILE* fp)
                fprintf(fp, "pid - %d", pid);
        }
        /* app state */
-       app_state_e state;
+       app_tts_state_e state;
        ret = ttsd_data_get_client_state(uid, &state);
        if (0 != ret) {
                SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to get app state");