aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorSam Leffler <sleffler@google.com>2011-03-20 10:12:12 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-20 10:12:12 (GMT)
commit7c49fdd0bd214f5fa3af8407d7011930ac150ef1 (patch)
tree418b0860c05e8eeac9d3d7abec778c4b9ef26857 /wpa_supplicant/config.h
parentbc8397822bcb89139959b4f00931d88db32c6636 (diff)
downloadhostap-7c49fdd0bd214f5fa3af8407d7011930ac150ef1.zip
hostap-7c49fdd0bd214f5fa3af8407d7011930ac150ef1.tar.gz
hostap-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/config.h')
-rw-r--r--wpa_supplicant/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 75406ef..9e9e0f7 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -410,6 +410,9 @@ struct wpa_config {
void wpa_config_free(struct wpa_config *ssid);
void wpa_config_free_ssid(struct wpa_ssid *ssid);
+void wpa_config_foreach_network(struct wpa_config *config,
+ void (*func)(void *, struct wpa_ssid *),
+ void *arg);
struct wpa_ssid * wpa_config_get_network(struct wpa_config *config, int id);
struct wpa_ssid * wpa_config_add_network(struct wpa_config *config);
int wpa_config_remove_network(struct wpa_config *config, int id);