From c482162dd98f4b76f870f6c861f6ca2e3f80ebd3 Mon Sep 17 00:00:00 2001 From: Sungwook Park Date: Wed, 25 Sep 2019 19:00:33 +0900 Subject: [PATCH] Add parameter for stte_unset_audio_type_set_cb to fix issue for utc Change-Id: I76349ec1505904194049b8ab1b4e43a13434035f Signed-off-by: Sungwook Park --- include/stte.h | 3 ++- server/stte.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/stte.h b/include/stte.h index 655aebb..6524155 100755 --- a/include/stte.h +++ b/include/stte.h @@ -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 diff --git a/server/stte.c b/server/stte.c index 4827465..c623b6a 100755 --- a/server/stte.c +++ b/server/stte.c @@ -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 +} -- 2.7.4