########################## search for packages ################################
-SET(COMMON_DEPS "dlog glib-2.0 gio-2.0 capi-base-common gio-unix-2.0 gssdp-1.0 dns_sd")
+SET(COMMON_DEPS "dlog glib-2.0 gio-2.0 capi-base-common capi-system-info gio-unix-2.0 gssdp-1.0 dns_sd")
SET(PC_DEPS "capi-base-common")
Name: capi-network-nsd
Summary: A Network Service Discovery libraries in Native API
-Version: 0.0.5
+Version: 0.0.6
Release: 1
Group: System/Network
License: Apache-2.0
Source1004: nsd-tests.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(capi-base-common)
+BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dns_sd)
#include <dlog.h>
#include <dns_sd.h>
#include <dns-sd.h>
+#include <system_info.h>
#undef LOG_TAG
#define LOG_TAG "CAPI_NETWORK_DNSSD"
#define NETWORK_SERVICE_DISCOVERY_FEATURE "http://tizen.org/feature/network.service_discovery.dnssd"
-#if 0
#define CHECK_FEATURE_SUPPORTED(feature_name)\
do {\
bool feature_supported = FALSE;\
} \
} while (0)
-#else
-#define CHECK_FEATURE_SUPPORTED(feature_name)
-#endif
-
#define IPV4_LEN 4
#define IPV6_LEN 16
#define USE_DLOG
#ifdef USE_DLOG
#include <dlog.h>
+#include <system_info.h>
#undef LOG_TAG
#define LOG_TAG "CAPI_NETWORK_SSDP"
#endif /* USE_DLOG */
-#define NETWORK_SERVICE_DISCOVERY_FEATURE "http://tizen.org/feature/network.service_discovery"
+#define NETWORK_SERVICE_DISCOVERY_FEATURE "http://tizen.org/feature/network.service_discovery.ssdp"
-#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 NSD_ERROR_NOT_SUPPORTED;\
+ return SSDP_ERROR_NOT_SUPPORTED;\
} \
} else {\
LOGE("Error - Feature getting from System Info");\
- return NSD_ERROR_OPERATION_FAILED;\
+ return SSDP_ERROR_OPERATION_FAILED;\
} \
} while (0)
-#else
-#define CHECK_FEATURE_SUPPORTED(feature_name)
-#endif
-
#define GLIST_ITER_START(arg_list, elem) \
GList *temp = NULL; \
temp = g_list_first(arg_list); \