static void __handle_usb_tether_changed(struct connman_technology *technology, void *user_data);
static void __handle_bt_tether_changed(struct connman_technology *technology, void *user_data);
static void __handle_passphrase_changed(struct connman_technology *technology, void *user_data);
+static void __handle_ssid_visibility_changed(struct connman_technology *technology, void *user_data);
static void __handle_wifi_tether_on(void* user_data);
static void __handle_wifi_tether_off(void* user_data);
__handle_passphrase_changed,
user_data);
}
+ if (th->ssid_visibility_changed_cb)
+ {
+ g_print("=====set tethering ssid visibility changed callback=====\n");
+ connman_technology_set_property_changed_cb(technology,
+ TECH_PROP_TETHERING_HIDDEN,
+ __handle_ssid_visibility_changed,
+ user_data);
+ }
}
static void __handle_wifi_tether_changed(struct connman_technology *technology, void* user_data)
return;
}
-
-static void __handle_ssid_visibility_changed(DBusGProxy *proxy, const char *value_name, gpointer user_data)
+*/
+static void __handle_ssid_visibility_changed(struct connman_technology* technology, void* user_data)
{
DBG("+\n");
return;
data = th->ssid_visibility_user_data;
- if (g_strcmp0(value_name, SIGNAL_MSG_SSID_VISIBLE) == 0)
- visible = true;
+ visible = !connman_get_wifi_tethering_hidden(technology);
+ g_print("=====wifi_ssid_visibility_changed callback is called=====\n");
+
scb(visible, data);
return;
}
-*/
+
static void __handle_passphrase_changed(struct connman_technology* technology, void *user_data)
{
DBG("+\n");
th->security_type_user_data = user_data;
return TETHERING_ERROR_NONE;
-
}
/**
th->ssid_visibility_changed_cb = callback;
th->ssid_visibility_user_data = user_data;
+ struct connman_technology *technology = connman_get_technology(
+ TECH_TYPE_WIFI);
+ connman_technology_set_property_changed_cb(technology,
+ TECH_PROP_TETHERING_HIDDEN,
+ __handle_ssid_visibility_changed,
+ tethering);
+
return TETHERING_ERROR_NONE;
}
th->ssid_visibility_changed_cb = NULL;
th->ssid_visibility_user_data = NULL;
+
+ struct connman_technology *technology = connman_get_technology(
+ TECH_TYPE_WIFI);
+ connman_technology_unset_property_changed_cb(
+ technology,
+ TECH_PROP_TETHERING_HIDDEN);
return TETHERING_ERROR_NONE;
}
org_tizen_tethering_set_wifi_tethering_hide_mode_async(proxy, hide_mode,
__wifi_set_ssid_visibility_cb, (gpointer)tethering);
*/
+ struct connman_technology *technology = connman_get_technology(
+ TECH_TYPE_WIFI);
+ connman_set_wifi_tethering_hidden(technology, !visible);
+
DBG("-\n");
return TETHERING_ERROR_NONE;
}
else
*visible = false;
*/
+ struct connman_technology *technology = connman_get_technology(
+ TECH_TYPE_WIFI);
+ *visible = !connman_get_wifi_tethering_hidden(technology);
+
DBG("-\n");
return TETHERING_ERROR_NONE;
}