summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-24 16:42:13 +0200
committerThomas Haller <thaller@redhat.com>2020-04-24 19:36:53 +0200
commit2eb398648f26c6284070ecb4934368813c005de4 (patch)
tree8bf53c45e354e8f907215f88248d86cdf1f572ff /src/supplicant/nm-supplicant-interface.h
parent6d0ea83949c144b25926f4f72ebea76e9ea3382b (diff)
wifi: add callback to nm_supplicant_interface_request_scan()
While we request a scan, we are not yet actually scanning. That means, the supplicant's "scanning" property will only change to TRUE a while after we initiate the scan. It may even never happen. We thus need to handle that the request is currently pending and react when the request completes. (cherry picked from commit 16c1869476106859b684151eb1b101c24cff3451)
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index eb414f26f..9ef198167 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -128,9 +128,16 @@ nm_supplicant_interface_disconnect_async (NMSupplicantInterface * self,
NMSupplicantInterfaceDisconnectCb callback,
gpointer user_data);
+typedef void (*NMSupplicantInterfaceRequestScanCallback) (NMSupplicantInterface *self,
+ GCancellable *cancellable,
+ gpointer user_data);
+
void nm_supplicant_interface_request_scan (NMSupplicantInterface *self,
GBytes *const*ssids,
- guint ssids_len);
+ guint ssids_len,
+ GCancellable *cancellable,
+ NMSupplicantInterfaceRequestScanCallback callback,
+ gpointer user_data);
NMSupplicantInterfaceState nm_supplicant_interface_get_state (NMSupplicantInterface * self);