From: Wonnam Jang Date: Tue, 30 Oct 2018 00:03:05 +0000 (+0000) Subject: Merge "Fixed function call to dlopen" into tizen X-Git-Tag: submit/tizen/20181204.065424~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaaf473d850f0bc5ec917695bcec4652f68db652;p=platform%2Fcore%2Fuifw%2Fwakeup-engine-default.git Merge "Fixed function call to dlopen" into tizen --- eaaf473d850f0bc5ec917695bcec4652f68db652 diff --cc src/multi_assistant_service_plugin.c index d56dbfa,25f8104..c4ba69f --- a/src/multi_assistant_service_plugin.c +++ b/src/multi_assistant_service_plugin.c @@@ -86,11 -88,13 +88,13 @@@ Eina_Bool __request_speech_data(void *d if (!wakeup_word) return EINA_FALSE; mas_set_current_client_by_wakeup_word(wakeup_word); + masc_ui_dbus_change_assistant(mas_get_client_appid_by_wakeup_word(wakeup_word)); if ((pid = mas_get_client_pid_by_wakeup_word(wakeup_word)) != -1) { MAS_LOGD("MA Client with wakeup word %s exists, requesting speech data", (wakeup_word ? wakeup_word : "NULL")); - masc_ui_dbus_change_assistant(mas_get_client_appid_by_pid(pid)); ma_client_set_temp_speech_data_requested(1); - int ret = wakeup_service_request_speech_data(); + int (*ws_request_speech_data)(void); + ws_request_speech_data = (int (*)(void))dlsym(g_handle, "wakeup_service_request_speech_data"); + int ret = ws_request_speech_data(); if (0 != ret) { MAS_LOGE("[ERROR] Fail to request speech data(%d)", ret); }