Make hostapd_for_each_interface() take context pointer as argument
This removes need for using eloop_get_user_data().
This commit is contained in:
parent
2988796257
commit
9969e5a46a
5 changed files with 29 additions and 11 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue