hostapd: remove version tag from directory
[dragonfly.git] / contrib / hostapd / iapp.h
1 /*
2  * hostapd / IEEE 802.11F-2003 Inter-Access Point Protocol (IAPP)
3  * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef IAPP_H
16 #define IAPP_H
17
18 struct iapp_data;
19
20 #ifdef CONFIG_IAPP
21
22 void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
23 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
24 void iapp_deinit(struct iapp_data *iapp);
25 int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
26                   struct hostapd_bss_config *oldbss);
27
28 #else /* CONFIG_IAPP */
29
30 static inline void iapp_new_station(struct iapp_data *iapp,
31                                     struct sta_info *sta)
32 {
33 }
34
35 static inline struct iapp_data * iapp_init(struct hostapd_data *hapd,
36                                            const char *iface)
37 {
38         return NULL;
39 }
40
41 static inline void iapp_deinit(struct iapp_data *iapp)
42 {
43 }
44
45 static inline int
46 iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
47               struct hostapd_bss_config *oldbss)
48 {
49         return 0;
50 }
51
52 #endif /* CONFIG_IAPP */
53
54 #endif /* IAPP_H */