xref: /freebsd/contrib/wpa/hostapd/ctrl_iface.h (revision 0bfd163f522701b486e066fa2e56624c02f5081a)
139beb93cSSam Leffler /*
239beb93cSSam Leffler  * hostapd / UNIX domain socket -based control interface
339beb93cSSam Leffler  * Copyright (c) 2004, Jouni Malinen <j@w1.fi>
439beb93cSSam Leffler  *
5*f05cddf9SRui Paulo  * This software may be distributed under the terms of the BSD license.
6*f05cddf9SRui Paulo  * See README for more details.
739beb93cSSam Leffler  */
839beb93cSSam Leffler 
939beb93cSSam Leffler #ifndef CTRL_IFACE_H
1039beb93cSSam Leffler #define CTRL_IFACE_H
1139beb93cSSam Leffler 
12e28a4053SRui Paulo #ifndef CONFIG_NO_CTRL_IFACE
1339beb93cSSam Leffler int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
1439beb93cSSam Leffler void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
15*f05cddf9SRui Paulo int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
16*f05cddf9SRui Paulo void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
17e28a4053SRui Paulo #else /* CONFIG_NO_CTRL_IFACE */
hostapd_ctrl_iface_init(struct hostapd_data * hapd)18e28a4053SRui Paulo static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
19e28a4053SRui Paulo {
20e28a4053SRui Paulo 	return 0;
21e28a4053SRui Paulo }
22e28a4053SRui Paulo 
hostapd_ctrl_iface_deinit(struct hostapd_data * hapd)23e28a4053SRui Paulo static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
24e28a4053SRui Paulo {
25e28a4053SRui Paulo }
26*f05cddf9SRui Paulo 
27*f05cddf9SRui Paulo static inline int
hostapd_global_ctrl_iface_init(struct hapd_interfaces * interface)28*f05cddf9SRui Paulo hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
29*f05cddf9SRui Paulo {
30*f05cddf9SRui Paulo 	return 0;
31*f05cddf9SRui Paulo }
32*f05cddf9SRui Paulo 
33*f05cddf9SRui Paulo static inline void
hostapd_global_ctrl_iface_deinit(struct hapd_interfaces * interface)34*f05cddf9SRui Paulo hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface)
35*f05cddf9SRui Paulo {
36*f05cddf9SRui Paulo }
37e28a4053SRui Paulo #endif /* CONFIG_NO_CTRL_IFACE */
3839beb93cSSam Leffler 
3939beb93cSSam Leffler #endif /* CTRL_IFACE_H */
40