Add internal API temporarily for backward compatibility 27/230527/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 10 Apr 2020 08:48:38 +0000 (17:48 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 10 Apr 2020 08:49:34 +0000 (17:49 +0900)
Change-Id: I4993cf2b3157b025bd4ee6581a77aea1e5bc0385

client/ma.c
include/multi_assistant_internal.h

index cd4a949ea9b7d598ff3b9b90195cbcee5eaa0618..f349f75aa01da4998684057963b7d5998d069697 100644 (file)
@@ -2140,6 +2140,12 @@ int ma_unset_preprocessing_result_received_cb(void)
        return MA_ERROR_NONE;
 }
 
+int ma_set_assistant_language(const char* language)
+{
+       MA_SLOGD("[Manager] Set assistant language");
+       return ma_set_assistant_wakeup_language(language);
+}
+
 int ma_set_assistant_wakeup_language(const char* language)
 {
        MA_SLOGD("[Manager] Set assistant wakeup language");
index 28f90114820a4a53f55a62108a844c79e6eb5ee6..fcb166553f01946e09404a83315cd88f07d06e39 100644 (file)
@@ -23,6 +23,28 @@ extern "C"
 {
 #endif
 
+/**
+ * @brief An alias for 'ma_set_assistant_wakeup_language' function.
+ * @details Since the function name has been change from 'ma_set_assistant_language'
+ *          to 'ma_set_assistant_wakeup_language' during the API review phase,
+ *          this function should be provided for supporting backward compatibility.
+ *          It will be removed all references are replaced with the newly added API.
+ * @since_tizen 5.5
+ *
+ * @param[in] language The language configuration that will be used for wake word detection.
+ *                     It should be denoted by two-letter code defined by IS 639-1,
+ *                     optionally combined with two-letter code defined by ISO 3166.
+ *                     For example, "ko_KR" for Korean, "en_US" for American English.
+ *
+ * @return @c 0 on success, otherwise a negative error value
+ * @retval #MA_ERROR_NONE Successful
+ * @retval #MA_ERROR_NOT_SUPPORTED Not supported
+ * @retval #MA_ERROR_INVALID_STATE Invalid state
+ *
+ * @pre The state should be #MA_STATE_READY.
+ */
+int ma_set_assistant_language(const char* language);
+
 #ifdef __cplusplus
 }
 #endif