Adopt protocol name change in multi-assistant package 76/229176/1
authorJi-hoon Lee <dalton.lee@samsng.com>
Wed, 25 Mar 2020 02:03:27 +0000 (11:03 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 30 Mar 2020 06:52:13 +0000 (15:52 +0900)
During the API review process, the name of an API and protocol
'assistant_language' was changed to 'assistant_wakeup_language'.
For simplicity, this commit changes the protocol names only
just to make the inter-process communication works as before,
and maintain the name 'assistant_language' in other occurrences.
Need to check if it would be better to replace all matching strings.

Change-Id: Ic717e89e0530186a3ba12962fe6b4ba9996bc70e

inc/multi_assistant_main.h
src/multi_assistant_dbus.c

index 81018ac..27250ef 100644 (file)
@@ -66,7 +66,7 @@
 #define MA_METHOD_SET_PREPROCESSING_ALLOW_MODE         "ma_method_set_preprocessing_allow_mode"
 #define MA_METHOD_SEND_PREPROCESSING_RESULT                    "ma_method_send_preprocessing_result"
 #define MA_METHOD_SET_WAKE_WORD_AUDIO_REQUIRE_FLAG     "ma_method_set_wake_word_audio_require_flag"
-#define MA_METHOD_SET_ASSISTANT_LANGUAGE                       "ma_method_set_assistant_language"
+#define MA_METHOD_SET_ASSISTANT_WAKEUP_LANGUAGE                        "ma_method_set_assistant_wakeup_language"
 #define MA_METHOD_ERROR                                                                "ma_method_error"
 
 #define MA_UI_METHOD_INITIALIZE                                                "ma_ui_method_initialize"
index a7f567c..a3f2777 100644 (file)
@@ -1079,7 +1079,7 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle
                } else if (dbus_message_is_method_call(msg, MA_SERVER_SERVICE_INTERFACE, MA_METHOD_SET_WAKE_WORD_AUDIO_REQUIRE_FLAG)) {
                        ma_service_dbus_set_wake_word_audio_require_flag(g_conn_listener, msg);
 
-               } else if (dbus_message_is_method_call(msg, MA_SERVER_SERVICE_INTERFACE, MA_METHOD_SET_ASSISTANT_LANGUAGE)) {
+               } else if (dbus_message_is_method_call(msg, MA_SERVER_SERVICE_INTERFACE, MA_METHOD_SET_ASSISTANT_WAKEUP_LANGUAGE)) {
                        ma_service_dbus_set_assistant_language(g_conn_listener, msg);
 
                } else if (dbus_message_is_method_call(msg, MA_SERVER_SERVICE_INTERFACE, MA_UI_METHOD_INITIALIZE)) {