From: sungrae jo Date: Thu, 19 Sep 2019 09:31:58 +0000 (+0900) Subject: Added new feature for vc_mgr X-Git-Tag: accepted/tizen/unified/20190923.011228~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c625f8f00a1468136397a42e2d70833b00dd079;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Added new feature for vc_mgr Change-Id: I11b7616e3827fb1389744d78506c3efe55cbe09b Signed-off-by: sungrae jo --- 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.