return progressbar;
}
+int init_voicedata(VoiceData *r_voicedata)
+{
+ VoiceData *voicedata = (VoiceData *)r_voicedata;
+ if (!voicedata) {
+ return FALSE;
+ }
+
+ voicedata->voicefw_state = 0;
+ voicedata->voicefw_handle = NULL;
+ voicedata->naviframe = NULL;
+ voicedata->layout_main = NULL;
+ voicedata->progressbar = NULL;
+ voicedata->scroller = NULL;
+ voicedata->main_entry = NULL;
+ voicedata->mic_button = NULL;
+ voicedata->state = STT_STATE_VAL_INIT;
+ voicedata->kbd_lang = NULL;
+ voicedata->start_timer = NULL;
+ voicedata->refresh_timer = NULL;
+ voicedata->progressbar_timer = NULL;
+ voicedata->textblock_timer = NULL;
+ voicedata->guide_text_timer = NULL;
+ voicedata->btn_disabling_timer = NULL;
+ voicedata->power_unlock_timer = NULL;
+ voicedata->init_timer = NULL;
+
+ voicedata->stt_results.clear();
+ voicedata->partial_result = NULL;
+ voicedata->result_type = 0;
+ voicedata->disclaimer = 0;
+ voicedata->sttfeedback = NULL;
+ voicedata->sttmanager = NULL;
+ voicedata->ieffect = NULL;
+ voicedata->effector = NULL;
+
+ return TRUE;
+}
+
int init_voice(Evas_Object *parent, const char *lang, VoiceData *r_voicedata)
{
LOGD("init_voice");
LOGD("%d::::Heap Overflow, Voice Input cannot be shown!", __LINE__);
return;
}
- memset(my_voicedata, 0, sizeof(VoiceData));
+ init_voicedata(my_voicedata);
}
if (my_voicedata) {