summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-10-15 15:11:34 +0200
committerThomas Haller <thaller@redhat.com>2018-12-13 09:20:55 +0100
commit1371414e3d39fb0974db1282a136bb96448e6287 (patch)
tree3f0cdbc557794b62101a9015a31955c5b6e3ac1d /src/supplicant/nm-supplicant-interface.h
parentc05aa3b309835b4789ffbe502be82c087a3e4ef9 (diff)
supplicant: Add methods to start/stop a P2P Find operation
The timeout is limited to be in the range of 1-600s. This is arbitrary, but the point is that a timeout of 0 is not permitted to prevent a client from making us run a find continuously simply by forgetting to call the stop method.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index b9d1b2839..0aa7732ac 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -146,6 +146,10 @@ gboolean nm_supplicant_interface_credentials_reply (NMSupplicantInterface *self,
const char *value,
GError **error);
+void nm_supplicant_interface_p2p_start_find (NMSupplicantInterface *self,
+ guint timeout);
+void nm_supplicant_interface_p2p_stop_find (NMSupplicantInterface *self);
+
void nm_supplicant_interface_p2p_connect (NMSupplicantInterface * self,
const char * peer,
const char * wps_method,