From 22a1dc61ef8e4e1c98e3a088db1dbc84d424c7a7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 9 Jul 2017 07:46:23 +0000 Subject: Separate messages via \0, read messages one by one. Add wpactrl_scan_parse() skel. --- doc/libwpactrl/index.html | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'doc/libwpactrl/index.html') diff --git a/doc/libwpactrl/index.html b/doc/libwpactrl/index.html index 0d2870e..1115787 100644 --- a/doc/libwpactrl/index.html +++ b/doc/libwpactrl/index.html @@ -175,24 +175,18 @@ a spamming wpa_supplicant from monopolizing your program.

- char *wpactrl_data (wpactrl_t *a)
-Returns a pointer to the unsolicited messages from wpa_supplicant -that have been read by wpactrl_update() but haven't been -acknowledged yet. + char *wpactrl_msg (wpactrl_t *a)
+Returns a pointer to the first unsolicited message from +wpa_supplicant that has been read by wpactrl_update() but +has not been acknowledged yet. If there's no such message, +returns NULL.

- char *wpactrl_datalen (wpactrl_t *a)
-Returns the length of unsolicited messages from wpa_supplicant -that have been read by wpactrl_update() but haven't been -acknowledged yet. -

- -

- void wpactrl_ackdata (wpactrl_t *a) -Acknowledges reading the latest batch of unsolicited messages -from wpa_supplicant: allows the next invocation of -wpactrl_update() to reuse the storage. + void wpactrl_nextmsg (wpactrl_t *a)
+Acknowledges reading of one unsolicited message from wpa_supplicant. +The next invocation of wpactrl_msg() will point to the next +one.

-- cgit v1.2.3