Added new feature for vc_mgr 57/214257/1
authorsungrae jo <seongrae.jo@samsung.com>
Thu, 19 Sep 2019 09:31:58 +0000 (18:31 +0900)
committersungrae jo <seongrae.jo@samsung.com>
Thu, 19 Sep 2019 09:31:58 +0000 (18:31 +0900)
Change-Id: I11b7616e3827fb1389744d78506c3efe55cbe09b
Signed-off-by: sungrae jo <seongrae.jo@samsung.com>
client/vc_mgr.c
common/vc_defs.h
doc/uix_vc_mgr_doc.h

index df81eee..35f272c 100644 (file)
@@ -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");
index a3a62dc..b3db152 100644 (file)
@@ -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"
index 04c96a1..08c30cf 100644 (file)
  * @section CAPI_UIX_VOICE_CONTROL_MANAGER_MODULE_FEATURES Related Features
  * This API is related with the following features:<br>
  * - http://tizen.org/feature/microphone<br>
- * - http://tizen.org/feature/speech.control<br>
+ * - http://tizen.org/feature/speech.control_manager<br>
  * It is recommended to design feature related codes in your application for reliability.<br>
  * 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.<br>
  * 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.<br>