Change-Id: I76349ec1505904194049b8ab1b4e43a13434035f
Signed-off-by: Sungwook Park <sungwook79.park@samsung.com>
/**
* @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
* @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
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
+}