00001 00016 #ifndef CTRL_IFACE_H 00017 #define CTRL_IFACE_H 00018 00019 #ifdef CONFIG_CTRL_IFACE 00020 00021 int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s); 00022 void wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s); 00023 void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level, 00024 char *buf, size_t len); 00025 void wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant *wpa_s); 00026 int wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global); 00027 void wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global *global); 00028 00029 #else /* CONFIG_CTRL_IFACE */ 00030 00031 static inline int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s) 00032 { 00033 return 0; 00034 } 00035 00036 static inline void 00037 wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s) 00038 { 00039 } 00040 00041 static inline void 00042 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level, 00043 char *buf, size_t len) 00044 { 00045 } 00046 00047 static inline void 00048 wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant *wpa_s) 00049 { 00050 } 00051 00052 static inline int 00053 wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global) 00054 { 00055 return 0; 00056 } 00057 00058 static inline void 00059 wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global *global) 00060 { 00061 } 00062 00063 #endif /* CONFIG_CTRL_IFACE */ 00064 00065 #endif /* CTRL_IFACE_H */ 00066