From 2c625f8f00a1468136397a42e2d70833b00dd079 Mon Sep 17 00:00:00 2001 From: sungrae jo Date: Thu, 19 Sep 2019 18:31:58 +0900 Subject: [PATCH] Added new feature for vc_mgr Change-Id: I11b7616e3827fb1389744d78506c3efe55cbe09b Signed-off-by: sungrae jo --- client/vc_mgr.c | 2 +- common/vc_defs.h | 1 + doc/uix_vc_mgr_doc.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/vc_mgr.c b/client/vc_mgr.c index df81eee..35f272c 100644 --- a/client/vc_mgr.c +++ b/client/vc_mgr.c @@ -133,7 +133,7 @@ static int __vc_mgr_get_feature_enabled() } else if (-1 == g_feature_enabled) { bool vc_supported = false; bool mic_supported = false; - if (0 == system_info_get_platform_bool(VC_FEATURE_PATH, &vc_supported)) { + if (0 == system_info_get_platform_bool(VC_MGR_FEATURE_PATH, &vc_supported)) { if (0 == system_info_get_platform_bool(VC_MIC_FEATURE_PATH, &mic_supported)) { if (false == vc_supported || false == mic_supported) { SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Voice control feature NOT supported"); diff --git a/common/vc_defs.h b/common/vc_defs.h index a3a62dc..b3db152 100644 --- a/common/vc_defs.h +++ b/common/vc_defs.h @@ -233,6 +233,7 @@ extern "C" { #define VC_CONNECTION_RETRY_COUNT 10 #define VC_FEATURE_PATH "tizen.org/feature/speech.control" +#define VC_MGR_FEATURE_PATH "tizen.org/feature/speech.control_manager" #define VC_MIC_FEATURE_PATH "tizen.org/feature/microphone" #define VC_PRIVILEGE "http://tizen.org/privilege/recorder" diff --git a/doc/uix_vc_mgr_doc.h b/doc/uix_vc_mgr_doc.h index 04c96a1..08c30cf 100644 --- a/doc/uix_vc_mgr_doc.h +++ b/doc/uix_vc_mgr_doc.h @@ -276,7 +276,7 @@ * @section CAPI_UIX_VOICE_CONTROL_MANAGER_MODULE_FEATURES Related Features * This API is related with the following features:
* - http://tizen.org/feature/microphone
- * - http://tizen.org/feature/speech.control
+ * - http://tizen.org/feature/speech.control_manager
* It is recommended to design feature related codes in your application for reliability.
* You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.
* To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
-- 2.7.4