16 lines
572 B
C
16 lines
572 B
C
|
#ifndef WPA_CTRL_H
|
||
|
#define WPA_CTRL_H
|
||
|
|
||
|
struct wpa_ctrl * wpa_ctrl_open(const char *ctrl_path);
|
||
|
void wpa_ctrl_close(struct wpa_ctrl *ctrl);
|
||
|
int wpa_ctrl_request(struct wpa_ctrl *ctrl, char *cmd, size_t cmd_len,
|
||
|
char *reply, size_t *reply_len,
|
||
|
void (*msg_cb)(char *msg, size_t len));
|
||
|
int wpa_ctrl_attach(struct wpa_ctrl *ctrl);
|
||
|
int wpa_ctrl_detach(struct wpa_ctrl *ctrl);
|
||
|
int wpa_ctrl_recv(struct wpa_ctrl *ctrl, char *reply, size_t *reply_len);
|
||
|
int wpa_ctrl_pending(struct wpa_ctrl *ctrl);
|
||
|
int wpa_ctrl_get_fd(struct wpa_ctrl *ctrl);
|
||
|
|
||
|
#endif /* WPA_CTRL_H */
|