/*
-* Copyright (c) 2011-2014 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
}
-void __sttd_config_engine_changed_cb(const char* engine_id, const char* setting, const char* language, bool support_silence, void* user_data)
+void __sttd_config_engine_changed_cb(const char* engine_id, const char* setting, const char* language, bool support_silence, bool need_credential, void* user_data)
{
/* Need to check engine is valid */
if (false == stt_config_check_default_engine_is_valid(engine_id)) {
}
if (NULL != g_engine_cb)
- g_engine_cb(engine_id, language, support_silence, g_user_data);
+ g_engine_cb(engine_id, language, support_silence, need_credential, g_user_data);
else
SLOG(LOG_ERROR, TAG_STTD, "Engine changed callback is NULL");
}
SECURE_SLOG(LOG_DEBUG, TAG_STTD, " type(%d) bool(%s)", type, bool_value ? "on" : "off");
if (STT_CONFIG_TYPE_OPTION_SILENCE_DETECTION == type) {
- if (NULL != g_silence_cb){
+ if (NULL != g_silence_cb) {
g_silence_cb(bool_value, g_user_data);
SLOG(LOG_DEBUG, TAG_STTD, "Call back silence detection changed");
}
int sttd_config_time_reset()
{
return stt_config_mgr_reset_time_info();
-}
\ No newline at end of file
+}