]> git.ipfire.org Git - thirdparty/hostap.git/blame - hostapd/ctrl_iface.h
hostapd: Add airtime policy configuration support
[thirdparty/hostap.git] / hostapd / ctrl_iface.h
CommitLineData
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
13int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
14void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
c90fd485
SP
15int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
16void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
7fd46d46
JM
17#else /* CONFIG_NO_CTRL_IFACE */
18static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
19{
20 return 0;
21}
22
23static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
24{
25}
c90fd485
SP
26
27static inline int
28hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
29{
30 return 0;
31}
32
33static inline void
34hostapd_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 */