return NULL;
}
+Eina_Bool __request_speech_data_timer(void *data)
+{
+ MAS_LOGD("[ENTER]");
+
+ int pid = (int)(data);
+ char appid[MAX_APPID_LEN] = {'\0',};
+ if (AUL_R_OK == aul_app_get_appid_bypid(pid, appid, sizeof(appid))) {
+ appid[MAX_APPID_LEN - 1] = '\0';
+ if (strncmp(g_launching_maclient_appid, appid, MAX_APPID_LEN) == 0) {
+ g_launching_maclient_appid[0] = '\0';
+ mas_client_request_speech_data(pid);
+ }
+ }
+
+ MAS_LOGD("END");
+ return EINA_FALSE;
+}
+
int mas_client_initialize(int pid)
{
MAS_LOGD("[Enter] pid(%d)", pid);
/* Since the ma_request_speech_data() is not available, we will request speech data here.
Need to remove below code when ma_request_speech_data() get implemented.
*/
- if (0 == strncmp(g_launching_maclient_appid, appid, MAX_APPID_LEN)) {
- g_launching_maclient_appid[0] = '\0';
- mas_client_request_speech_data(pid);
- }
+ ecore_timer_add(3.0f, __request_speech_data_timer, (void*)(pid));
}
}