1e5b75505Sopenharmony_ci/* 2e5b75505Sopenharmony_ci * hostapd / UNIX domain socket -based control interface 3e5b75505Sopenharmony_ci * Copyright (c) 2004, Jouni Malinen <j@w1.fi> 4e5b75505Sopenharmony_ci * 5e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license. 6e5b75505Sopenharmony_ci * See README for more details. 7e5b75505Sopenharmony_ci */ 8e5b75505Sopenharmony_ci 9e5b75505Sopenharmony_ci#ifndef CTRL_IFACE_H 10e5b75505Sopenharmony_ci#define CTRL_IFACE_H 11e5b75505Sopenharmony_ci 12e5b75505Sopenharmony_ci#ifndef CONFIG_NO_CTRL_IFACE 13e5b75505Sopenharmony_ciint hostapd_ctrl_iface_init(struct hostapd_data *hapd); 14e5b75505Sopenharmony_civoid hostapd_ctrl_iface_deinit(struct hostapd_data *hapd); 15e5b75505Sopenharmony_ciint hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); 16e5b75505Sopenharmony_civoid hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); 17e5b75505Sopenharmony_ci#else /* CONFIG_NO_CTRL_IFACE */ 18e5b75505Sopenharmony_cistatic inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd) 19e5b75505Sopenharmony_ci{ 20e5b75505Sopenharmony_ci return 0; 21e5b75505Sopenharmony_ci} 22e5b75505Sopenharmony_ci 23e5b75505Sopenharmony_cistatic inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) 24e5b75505Sopenharmony_ci{ 25e5b75505Sopenharmony_ci} 26e5b75505Sopenharmony_ci 27e5b75505Sopenharmony_cistatic inline int 28e5b75505Sopenharmony_cihostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) 29e5b75505Sopenharmony_ci{ 30e5b75505Sopenharmony_ci return 0; 31e5b75505Sopenharmony_ci} 32e5b75505Sopenharmony_ci 33e5b75505Sopenharmony_cistatic inline void 34e5b75505Sopenharmony_cihostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) 35e5b75505Sopenharmony_ci{ 36e5b75505Sopenharmony_ci} 37e5b75505Sopenharmony_ci#endif /* CONFIG_NO_CTRL_IFACE */ 38e5b75505Sopenharmony_ci 39e5b75505Sopenharmony_ci#endif /* CTRL_IFACE_H */ 40