Add parameter for stte_unset_audio_type_set_cb to fix issue for utc 97/214697/1
authorSungwook Park <sungwook79.park@samsung.com>
Wed, 25 Sep 2019 10:00:33 +0000 (19:00 +0900)
committerSungwook Park <sungwook79.park@samsung.com>
Wed, 25 Sep 2019 10:00:33 +0000 (19:00 +0900)
Change-Id: I76349ec1505904194049b8ab1b4e43a13434035f
Signed-off-by: Sungwook Park <sungwook79.park@samsung.com>
include/stte.h
server/stte.c

index 655aebb..6524155 100755 (executable)
@@ -837,6 +837,7 @@ int stte_set_audio_type_set_cb(stte_audio_type_cb callback_func, void* user_data
 /**
 * @brief Unsets a callback function for setting the audio type.
 * @since_tizen 5.5
+* @param[in] callback_func stte_audio_type_set event callback function
 * @return @c 0 on success,
 *         otherwise a negative error value
 * @retval #STTE_ERROR_NONE Successful
@@ -845,7 +846,7 @@ int stte_set_audio_type_set_cb(stte_audio_type_cb callback_func, void* user_data
 * @pre The stte_main() function should be invoked before this function is called.
 * @see stte_set_audio_type_set_cb()
 */
-int stte_unset_audio_type_set_cb(void);
+int stte_unset_audio_type_set_cb(stte_audio_type_cb callback_func);
 
 
 #ifdef __cplusplus
index 4827465..c623b6a 100755 (executable)
@@ -125,14 +125,14 @@ int stte_set_audio_type_set_cb(stte_audio_type_cb callback, void* user_data)
        return ret;
 }
 
-int stte_unset_audio_type_set_cb(void)
+int stte_unset_audio_type_set_cb(stte_audio_type_cb callback)
 {
        SLOG(LOG_INFO, TAG_STTD, "[Server Info] Unset audio type set callback");
 
        int ret = STTE_ERROR_NONE;
-       ret = stt_engine_set_audio_type_set_cb(NULL, NULL);
+       ret = stt_engine_set_audio_type_set_cb(callback, NULL);
        if (0 != ret) {
                SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to unset audio type set");
        }
        return ret;
-}
\ No newline at end of file
+}