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 13int hostapd_ctrl_iface_init(struct hostapd_data *hapd); 14void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd); 15int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); 16void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); 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} 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} 37#endif /* CONFIG_NO_CTRL_IFACE */ 38 39#endif /* CTRL_IFACE_H */ 40