Make hostapd_for_each_interface() take context pointer as argument

This removes need for using eloop_get_user_data().
This commit is contained in:
Jouni Malinen 2009-12-19 19:07:31 +02:00
parent 2988796257
commit 9969e5a46a
5 changed files with 29 additions and 11 deletions

View file

@ -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 */