2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* hostapd / UNIX domain socket -based control interface
|
|
|
|
* Copyright (c) 2004, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CTRL_IFACE_H
|
|
|
|
#define CTRL_IFACE_H
|
|
|
|
|
2009-01-12 20:44:57 +01:00
|
|
|
#ifndef CONFIG_NO_CTRL_IFACE
|
2008-02-28 02:34:43 +01:00
|
|
|
int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
|
|
|
|
void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
|
2011-12-20 16:10:47 +01:00
|
|
|
int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
|
|
|
|
void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface);
|
2009-01-12 20:44:57 +01:00
|
|
|
#else /* CONFIG_NO_CTRL_IFACE */
|
|
|
|
static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
|
|
|
|
{
|
|
|
|
}
|
2011-12-20 16:10:47 +01:00
|
|
|
|
|
|
|
static inline int
|
|
|
|
hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface)
|
|
|
|
{
|
|
|
|
}
|
2009-01-12 20:44:57 +01:00
|
|
|
#endif /* CONFIG_NO_CTRL_IFACE */
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* CTRL_IFACE_H */
|