diff options
author | Sam Leffler <sleffler@google.com> | 2011-03-20 12:12:12 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-03-20 12:12:12 +0200 |
commit | 7c49fdd0bd214f5fa3af8407d7011930ac150ef1 (patch) | |
tree | 418b0860c05e8eeac9d3d7abec778c4b9ef26857 /wpa_supplicant/dbus/dbus_new.c | |
parent | bc8397822bcb89139959b4f00931d88db32c6636 (diff) | |
download | external_wpa_supplicant_8_ti-7c49fdd0bd214f5fa3af8407d7011930ac150ef1.zip external_wpa_supplicant_8_ti-7c49fdd0bd214f5fa3af8407d7011930ac150ef1.tar.gz external_wpa_supplicant_8_ti-7c49fdd0bd214f5fa3af8407d7011930ac150ef1.tar.bz2 |
dbus: Add RemoveAllNetworks to the new D-Bus API
This adds a new command to the interface to remove all configured
netblocks. Without this it's necessary to query properties on the
interface and explicitly remove each netblock.
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new.c')
-rw-r--r-- | wpa_supplicant/dbus/dbus_new.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c index d86552f..63bea98 100644 --- a/wpa_supplicant/dbus/dbus_new.c +++ b/wpa_supplicant/dbus/dbus_new.c @@ -1312,6 +1312,12 @@ static const struct wpa_dbus_method_desc wpas_dbus_interface_methods[] = { END_ARGS } }, + { "RemoveAllNetworks", WPAS_DBUS_NEW_IFACE_INTERFACE, + (WPADBusMethodHandler) &wpas_dbus_handler_remove_all_networks, + { + END_ARGS + } + }, { "SelectNetwork", WPAS_DBUS_NEW_IFACE_INTERFACE, (WPADBusMethodHandler) &wpas_dbus_handler_select_network, { |