wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ctrl_iface.h
Go to the documentation of this file.
1 
5 #ifndef CTRL_IFACE_H
6 #define CTRL_IFACE_H
7 
8 #ifdef CONFIG_CTRL_IFACE
9 
10 /* Shared functions from ctrl_iface.c; to be called by ctrl_iface backends */
11 
28  char *buf, size_t *resp_len);
29 
45  char *buf, size_t *resp_len);
46 
47 
48 /* Functions that each ctrl_iface backend must implement */
49 
60 struct ctrl_iface_priv *
62 
73 
86 
99 
110  struct ctrl_iface_global_priv *priv);
111 
112 void wpas_ctrl_radio_work_flush(struct wpa_supplicant *wpa_s);
113 
114 #else /* CONFIG_CTRL_IFACE */
115 
116 static inline struct ctrl_iface_priv *
118 {
119  return (void *) -1;
120 }
121 
122 static inline void
124 {
125 }
126 
127 static inline void
128 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level,
129  char *buf, size_t len)
130 {
131 }
132 
133 static inline void
135 {
136 }
137 
138 static inline struct ctrl_iface_global_priv *
140 {
141  return (void *) 1;
142 }
143 
144 static inline void
146 {
147 }
148 
149 static inline void wpas_ctrl_radio_work_flush(struct wpa_supplicant *wpa_s)
150 {
151 }
152 
153 #endif /* CONFIG_CTRL_IFACE */
154 
155 #endif /* CTRL_IFACE_H */
Definition: ctrl_iface_named_pipe.c:548
struct ctrl_iface_global_priv * wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global)
Initialize global control interface.
Definition: ctrl_iface_named_pipe.c:803
struct ctrl_iface_priv * wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s)
Initialize control interface.
Definition: ctrl_iface_named_pipe.c:435
Internal, global data for all wpa_supplicant interfaces.
Definition: wpa_supplicant_i.h:273
char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global, char *buf, size_t *resp_len)
Process global ctrl_iface command.
Definition: ctrl_iface.c:9359
void wpa_supplicant_ctrl_iface_wait(struct ctrl_iface_priv *priv)
Wait for ctrl_iface monitor.
Definition: ctrl_iface_named_pipe.c:522
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451
char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s, char *buf, size_t *resp_len)
Process ctrl_iface command.
Definition: ctrl_iface.c:8124
void wpa_supplicant_global_ctrl_iface_deinit(struct ctrl_iface_global_priv *priv)
Deinitialize global ctrl interface.
Definition: ctrl_iface_named_pipe.c:822
void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv)
Deinitialize control interface.
Definition: ctrl_iface_named_pipe.c:463
Definition: ctrl_iface_named_pipe.c:72