From: Jiung Date: Mon, 23 Oct 2017 02:04:25 +0000 (+0900) Subject: Fix model config checking logic X-Git-Tag: submit/tizen/20171023.024527^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be51bd0c01cff6581c278a9f887957ef8f78eac3;p=platform%2Fcore%2Fapi%2Fasp.git Fix model config checking logic Change-Id: I29cb28c9c69d31b8d8b5bccf12b26e331fedb256 --- diff --git a/packaging/capi-network-asp.spec b/packaging/capi-network-asp.spec index bcbc0ae..904609b 100755 --- a/packaging/capi-network-asp.spec +++ b/packaging/capi-network-asp.spec @@ -2,7 +2,7 @@ Name: capi-network-asp Summary: An Application Service Platform(ASP) libraries in Native API -Version: 0.0.21 +Version: 0.0.22 Release: 1 Group: Network & Connectivity/API License: Apache-2.0 diff --git a/src/include/asp-util.h b/src/include/asp-util.h index e5dd6ff..a7d22fe 100755 --- a/src/include/asp-util.h +++ b/src/include/asp-util.h @@ -43,25 +43,20 @@ #define IPSTR_LEN 16 #define WPS_PIN_LEN 8 -#define TIZEN_FEATURE_P2PS "tizen.org/feature/network.asp" +#define TIZEN_FEATURE_ASP "tizen.org/feature/network.asp" -#if 0 #define CHECK_FEATURE_SUPPORTED(feature_name)\ do {\ bool feature_supported = FALSE;\ if (!system_info_get_platform_bool(feature_name, &feature_supported)) {\ if (feature_supported == FALSE) {\ LOGE("%s feature is disabled", feature_name);\ - return P2PS_ERROR_NOT_SUPPORTED;\ + return ASP_ERROR_NOT_SUPPORTED;\ } \ } else {\ LOGE("Error - Feature getting from System Info");\ - return P2PS_ERROR_OPERATION_FAILED;\ + return ASP_ERROR_OPERATION_FAILED;\ } \ } while (0) -#else -#define CHECK_FEATURE_SUPPORTED(feature_name) -#endif - #endif /** __ASP_UTIL_H__ */