blob: 64a50803908ffc68a40a08c3492094048525acde [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * hostapd / UNIX domain socket -based control interface
3 * Copyright (c) 2004, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef CTRL_IFACE_H
10#define CTRL_IFACE_H
11
12#ifndef CONFIG_NO_CTRL_IFACE
13int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
14void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
15#else /* CONFIG_NO_CTRL_IFACE */
16static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
17{
18 return 0;
19}
20
21static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
22{
23}
24#endif /* CONFIG_NO_CTRL_IFACE */
25
26#endif /* CTRL_IFACE_H */