- Some features aren't supported but these vconf value is existed
- Therefore, we check support by using system-info
Change-Id: I8a77ed61472842d4861c99cb527973dc8365bc43
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
-SET(requires "dlog vconf capi-base-common edbus")
+SET(requires "dlog vconf capi-base-common edbus capi-system-info")
SET(pc_requires "capi-base-common")
INCLUDE(FindPkgConfig)
SET(pc_requires "capi-base-common")
INCLUDE(FindPkgConfig)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(edbus)
+BuildRequires: pkgconfig(capi-system-info)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
#include <runtime_info.h>
#include <runtime_info_private.h>
#include <runtime_info.h>
#include <runtime_info_private.h>
+#include <system_info.h>
+
#ifdef LOG_TAG
#undef LOG_TAG
#endif
#ifdef LOG_TAG
#undef LOG_TAG
#endif
{
int vconf_value;
int ret;
{
int vconf_value;
int ret;
+ bool supported;
+
+ ret = system_info_get_platform_bool("http://tizen.org/feature/network.tethering.wifi", &supported);
+ if (ret != SYSTEM_INFO_ERROR_NONE)
+ return RUNTIME_INFO_ERROR_IO_ERROR;
+
+ if (!supported)
+ return RUNTIME_INFO_ERROR_NOT_SUPPORTED;
ret = runtime_info_vconf_get_value_int(VCONF_WIFI_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
ret = runtime_info_vconf_get_value_int(VCONF_WIFI_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
{
int vconf_value;
int ret;
{
int vconf_value;
int ret;
+ bool supported;
+
+ ret = system_info_get_platform_bool("http://tizen.org/feature/network.tethering.bluetooth", &supported);
+ if (ret != SYSTEM_INFO_ERROR_NONE)
+ return RUNTIME_INFO_ERROR_IO_ERROR;
+
+ if (!supported)
+ return RUNTIME_INFO_ERROR_NOT_SUPPORTED;
ret = runtime_info_vconf_get_value_int(VCONF_BT_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
ret = runtime_info_vconf_get_value_int(VCONF_BT_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
{
int vconf_value;
int ret;
{
int vconf_value;
int ret;
+ bool supported;
+
+ ret = system_info_get_platform_bool("http://tizen.org/feature/network.tethering.usb", &supported);
+ if (ret != SYSTEM_INFO_ERROR_NONE)
+ return RUNTIME_INFO_ERROR_IO_ERROR;
+
+ if (!supported)
+ return RUNTIME_INFO_ERROR_NOT_SUPPORTED;
ret = runtime_info_vconf_get_value_int(VCONF_USB_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
ret = runtime_info_vconf_get_value_int(VCONF_USB_HOTSPOT_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
#include <runtime_info.h>
#include <runtime_info_private.h>
#include <runtime_info.h>
#include <runtime_info_private.h>
+#include <system_info.h>
+
#ifdef LOG_TAG
#undef LOG_TAG
#endif
#ifdef LOG_TAG
#undef LOG_TAG
#endif
{
int vconf_value;
int ret;
{
int vconf_value;
int ret;
+ bool supported;
+
+ ret = system_info_get_platform_bool("http://tizen.org/feature/location.wps", &supported);
+ if (ret != SYSTEM_INFO_ERROR_NONE)
+ return RUNTIME_INFO_ERROR_IO_ERROR;
+
+ if (!supported)
+ return RUNTIME_INFO_ERROR_NOT_SUPPORTED;
ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_NETWORK_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)
ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_NETWORK_ENABLED, &vconf_value);
if (ret == RUNTIME_INFO_ERROR_NONE)