Merge from vendor branch FILE:
[dragonfly.git] / contrib / hostapd-0.4.9 / iapp.h
1 #ifndef IAPP_H
2 #define IAPP_H
3
4 struct iapp_data;
5
6 #ifdef CONFIG_IAPP
7
8 void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
9 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
10 void iapp_deinit(struct iapp_data *iapp);
11
12 #else /* CONFIG_IAPP */
13
14 static inline void iapp_new_station(struct iapp_data *iapp,
15                                     struct sta_info *sta)
16 {
17 }
18
19 static inline struct iapp_data * iapp_init(struct hostapd_data *hapd,
20                                            const char *iface)
21 {
22         return NULL;
23 }
24
25 static inline void iapp_deinit(struct iapp_data *iapp)
26 {
27 }
28
29 #endif /* CONFIG_IAPP */
30
31 #endif /* IAPP_H */