const gchar *sender, const gchar *object_path, const gchar *interface,
const gchar *signal, GVariant *parameters, gpointer user_data)
{
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
DEBUG_SIGNAL(sender, object_path, interface, signal, parameters);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
if (!g_pd) {
WDP_LOGE("ws_dbus_plugin_data_s is not created yet");
__WDP_LOG_FUNC_EXIT__;
return;
}
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
if (g_strcmp0(key, "DeviceName") == 0) {
const char *name = NULL;
}
wfd_oem_dev_data_s *peer = (wfd_oem_dev_data_s *)user_data;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "DeviceName") == 0) {
const char *name = NULL;
wfd_oem_event_s *event = (wfd_oem_event_s *)user_data;
if (!event)
return;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "Ifname") == 0) {
const char *ifname = NULL;
return;
wfd_oem_group_data_s *group = (wfd_oem_group_data_s *)event->edata;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "Role") == 0) {
const char *role = NULL;
return;
wfd_oem_invite_data_s *invitation = (wfd_oem_invite_data_s *)event->edata;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "sa") == 0) {
if (__ws_unpack_ay(invitation->sa, value, WS_MACADDR_LEN))
WDP_LOGD("SA [" MACSTR "]", MAC2STR(invitation->sa));
}
wfd_oem_group_data_s *group = (wfd_oem_group_data_s *)event->edata;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "interface_object") == 0) {
static char interface_path[DBUS_OBJECT_PATH_MAX] = {'\0',};
const char *i_path = NULL;
return;
wfd_oem_conn_data_s *conn = (wfd_oem_conn_data_s *)event->edata;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "peer_object") == 0) {
static char peer_path[DBUS_OBJECT_PATH_MAX] = {'\0',};
const char *path;
return;
wfd_oem_conn_data_s *edata = (wfd_oem_conn_data_s *)event->edata;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "peer_object") == 0) {
} else if (g_strcmp0(key, "status") == 0) {
if (!event)
return;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "peer_object") == 0) {
static unsigned char peer_dev[WS_MACSTR_LEN] = {'\0',};
const char *path = NULL;
}
param = g_variant_new("(ss)", SUPPLICANT_P2P_PEER, "AdvertiseService");
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(param);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", param);
reply = g_dbus_connection_call_sync(
g_dbus,
}
if (reply != NULL) {
-
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(reply);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Reply : ", reply);
/* replay will have the format <(<ay>,)>
* So, you need to remove tuple out side of variant and
GVariant *value = NULL;
while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
__ws_peer_property(key, value, (void *) event.edata);
}
g_variant_iter_free(iter);
gchar *key = NULL;
GVariant *value = NULL;
- while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+ while (g_variant_iter_loop(iter, "{sv}", &key, &value))
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
- }
+
g_variant_iter_free(iter);
}
while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
CHECK_KEY_VALUE(key, value);
+
if (g_strcmp0(key, "sa") == 0)
if (__ws_unpack_ay(event.dev_addr, value, WS_MACADDR_LEN))
WDP_LOGI("[" MACSTR "]", MAC2STR(event.dev_addr));
const gchar *signal, GVariant *parameters, gpointer user_data)
{
int i = 0;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
DEBUG_SIGNAL(sender, object_path, interface, signal, parameters);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
if (!g_pd) {
WDP_LOGE("ws_dbus_plugin_data_s is not created yet");
const gchar *signal, GVariant *parameters, gpointer user_data)
{
int i = 0;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
DEBUG_SIGNAL(sender, object_path, interface, signal, parameters);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
if (!g_pd) {
WDP_LOGE("ws_dbus_plugin_data_s is not created yet");
const gchar *sender, const gchar *object_path, const gchar *interface,
const gchar *signal, GVariant *parameters, gpointer user_data)
{
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
DEBUG_SIGNAL(sender, object_path, interface, signal, parameters);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
if (!g_pd) {
WDP_LOGE("ws_dbus_plugin_data_s is not created yet");
SUPPLICANT_PATH, g_pd->g_dbus);
params.params = g_variant_new("(s)", iface_name);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_INTERFACE,
function, user_data);
param = g_variant_new("(ssv)", SUPPLICANT_P2PDEVICE, "P2PDeviceConfig", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
}
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
value = g_variant_new("(os)", peer_path, __ws_wps_to_txt(wps_mode));
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
value = g_variant_new("(o)", peer_path);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE,
__store_group_iface_path, g_pd);
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_WPS, NULL, NULL);
if (res < 0)
"P2PDeviceConfig", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
}
param = g_variant_new("(ss)", SUPPLICANT_P2PDEVICE, "P2PDeviceConfig");
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(param);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", param);
reply = g_dbus_connection_call_sync(
g_dbus,
GVariant *value = NULL;
while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "GOIntent") == 0)
g_variant_get(value, "u", go_intent);
}
param = g_variant_new("(ssv)", SUPPLICANT_P2PDEVICE, "P2PDeviceConfig", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
param = g_variant_new("(ssv)", SUPPLICANT_IFACE, "Country", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
}
ws_network_info_s *network = (ws_network_info_s *)user_data;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
+
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "ssid") == 0) {
const char *ssid = NULL;
g_variant_get(value, "&s", &ssid);
void __ws_extract_p2pdevice_details(const char *key, GVariant *value, void *user_data)
{
__WDP_LOG_FUNC_ENTER__;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
CHECK_KEY_VALUE(key, value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+
if (g_strcmp0(key, "PersistentGroups") == 0) {
GVariantIter *iter = NULL;
const char *path = NULL;
dbus_set_method_param(¶ms, "RemovePersistentGroup",
g_pd->iface_path, g_dbus);
params.params = g_variant_new("(o)", networks[i].persistent_path);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0) {
param = g_variant_new("(ssv)", SUPPLICANT_P2PDEVICE, "P2PDeviceConfig", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, __add_service_query, mac_addr);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
g_variant_builder_unref(builder);
params.params = value;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
param = g_variant_new("(ssv)", SUPPLICANT_INTERFACE, "WFDIEs", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
param = g_variant_new("(ssv)", SUPPLICANT_INTERFACE, "WFDIEs", value);
params.params = param;
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, DBUS_PROPERTIES_INTERFACE, NULL, NULL);
if (res < 0)
value = g_variant_new("(a{sv})", builder);
g_variant_builder_unref(builder);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", value);
params.params = value;
value = g_variant_new("(a{sv})", builder);
g_variant_builder_unref(builder);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", value);
params.params = value;
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
value = g_variant_new("(a{sv})", builder);
g_variant_builder_unref(builder);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", value);
params.params = value;
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE,
params.params = g_variant_new("(t)", service->search_id);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(params.params);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", params.params);
res = dbus_method_call(¶ms, SUPPLICANT_P2PDEVICE, NULL, NULL);
if (res < 0)
value = g_variant_new("(a{sv})", builder);
g_variant_builder_unref(builder);
-#if defined(TIZEN_DEBUG_DBUS_VALUE)
- DEBUG_PARAMS(value);
-#endif /* TIZEN_DEBUG_DBUS_VALUE */
+ DEBUG_G_VARIANT("Params : ", value);
params.params = value;