aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 17:07:31 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 17:07:31 (GMT)
commit9969e5a46a4671a6c75dfc6c2952296e170bf50b (patch)
tree3e14efe58cacc570c0b48f391f4408d2218f71d2 /wpa_supplicant
parent2988796257e4ce850372376b5bc0a8c6c8db7a71 (diff)
downloadhostap-9969e5a46a4671a6c75dfc6c2952296e170bf50b.zip
hostap-9969e5a46a4671a6c75dfc6c2952296e170bf50b.tar.gz
hostap-9969e5a46a4671a6c75dfc6c2952296e170bf50b.tar.bz2
Make hostapd_for_each_interface() take context pointer as argument
This removes need for using eloop_get_user_data().
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 9dbe719..cf68193 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -33,7 +33,14 @@
#include "ap.h"
-int hostapd_for_each_interface(int (*cb)(struct hostapd_iface *iface,
+struct hapd_interfaces {
+ size_t count;
+ struct hostapd_iface **iface;
+};
+
+
+int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
+ int (*cb)(struct hostapd_iface *iface,
void *ctx), void *ctx)
{
/* TODO */