From: Ji-hoon Lee Date: Fri, 10 Apr 2020 08:48:38 +0000 (+0900) Subject: Add internal API temporarily for backward compatibility X-Git-Tag: submit/tizen/20200410.085735~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37578a41121ba28acfce32dd0ec0e8de403fc851;p=platform%2Fcore%2Fuifw%2Fmulti-assistant.git Add internal API temporarily for backward compatibility Change-Id: I4993cf2b3157b025bd4ee6581a77aea1e5bc0385 --- diff --git a/client/ma.c b/client/ma.c index cd4a949..f349f75 100644 --- a/client/ma.c +++ b/client/ma.c @@ -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"); diff --git a/include/multi_assistant_internal.h b/include/multi_assistant_internal.h index 28f9011..fcb1665 100644 --- a/include/multi_assistant_internal.h +++ b/include/multi_assistant_internal.h @@ -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