From a759f40b5224c6337dc64a57db66937c3de42e9c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 10 Aug 2017 21:41:58 +0000 Subject: More doc --- doc/libwpactrl/index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'doc/libwpactrl/index.html') diff --git a/doc/libwpactrl/index.html b/doc/libwpactrl/index.html index d3a3424..7a0a644 100644 --- a/doc/libwpactrl/index.html +++ b/doc/libwpactrl/index.html @@ -147,7 +147,7 @@ the answer is bigger than anslen bytes.

- ssize_t wpactrl_querysa (wpactrl_t *a, char const *q, stralloc *sa, tain_t *stamp)
+ int wpactrl_querysa (wpactrl_t *a, char const *q, stralloc *sa, tain_t *stamp)
Sends the query q to the connected instance of wpa_supplicant, and reads its answer into the stralloc @@ -472,5 +472,17 @@ written the results to the auxiliary pointer. dt can now be ignored. +

A working example

+ +

+ The provided + bcnm-wpactrl-scan.c +file is an example on how to program with +skalibs and libwpactrl. It connects to +a wpa_supplicant instance (it takes the path to the Unix socket to wpa_supplicant as +an argument), requests a scan, waits for the scan results with a timeout of 10 +seconds, and prints the results as is on its standard output. +

+ -- cgit v1.3.1