Merge "Fixed function call to dlopen" into tizen
authorWonnam Jang <wn.jang@samsung.com>
Tue, 30 Oct 2018 00:03:05 +0000 (00:03 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 30 Oct 2018 00:03:05 +0000 (00:03 +0000)
1  2 
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);
                }