]>
Commit | Line | Data |
---|---|---|
6fc6879b JM |
1 | /* |
2 | * hostapd / UNIX domain socket -based control interface | |
3 | * Copyright (c) 2004, Jouni Malinen <j@w1.fi> | |
4 | * | |
0f3d578e JM |
5 | * This software may be distributed under the terms of the BSD license. |
6 | * See README for more details. | |
6fc6879b JM |
7 | */ |
8 | ||
9 | #ifndef CTRL_IFACE_H | |
10 | #define CTRL_IFACE_H | |
11 | ||
7fd46d46 | 12 | #ifndef CONFIG_NO_CTRL_IFACE |
6fc6879b JM |
13 | int hostapd_ctrl_iface_init(struct hostapd_data *hapd); |
14 | void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd); | |
c90fd485 SP |
15 | int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); |
16 | void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); | |
7fd46d46 JM |
17 | #else /* CONFIG_NO_CTRL_IFACE */ |
18 | static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd) | |
19 | { | |
20 | return 0; | |
21 | } | |
22 | ||
23 | static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) | |
24 | { | |
25 | } | |
c90fd485 SP |
26 | |
27 | static inline int | |
28 | hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) | |
29 | { | |
30 | return 0; | |
31 | } | |
32 | ||
33 | static inline void | |
34 | hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) | |
35 | { | |
36 | } | |
7fd46d46 | 37 | #endif /* CONFIG_NO_CTRL_IFACE */ |
6fc6879b JM |
38 | |
39 | #endif /* CTRL_IFACE_H */ |