static bool g_err_callback_status = false;
-static bool g_all_result_callback_status = false;
-
/* for TTS feedback */
static int g_feedback_rate = 16000;
static vc_audio_channel_e g_feedback_audio_channel = 0;
vc_mgr_client_set_all_result(event, temp_text);
vc_mgr_client_use_callback();
- g_all_result_callback_status = true;
cb_ret = all_callback(event, vc_cmd_list, temp_text, temp_message, all_user_data);
- g_all_result_callback_status = false;
vc_mgr_client_not_use_callback();
if (true == vc_mgr_client_get_exclusive_command()) {
int vc_mgr_core_set_selected_results(vc_cmd_list_h vc_cmd_list, int pid)
{
- if (false == g_all_result_callback_status) {
- SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Not in all result callback");
- return VC_ERROR_OPERATION_FAILED;
- }
-
if (NULL != vc_cmd_list) {
int event = 0;
char* result_text = NULL;
* @privilege %http://tizen.org/privilege/voicecontrol.manager
*
* @remarks This function should be called in vc_mgr_all_result_cb().
+ * Or this function should be called after that vc_mgr_all_result_cb() returns @c false.
* The @a vc_cmd_list can be NULL, in that case the function does nothing.
* @param[in] vc_cmd_list The valid result list
*