xref: /freebsd/contrib/wpa/hostapd/ctrl_iface.h (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1 /*
2  * hostapd / UNIX domain socket -based control interface
3  * Copyright (c) 2004, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef CTRL_IFACE_H
10 #define CTRL_IFACE_H
11 
12 #ifndef CONFIG_NO_CTRL_IFACE
13 int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
14 void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
15 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
16 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
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 }
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 }
37 #endif /* CONFIG_NO_CTRL_IFACE */
38 
39 #endif /* CTRL_IFACE_H */
40