summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorAndy Kling <andreas.kling@peiker-cee.de>2019-02-21 11:06:55 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-07-29 10:28:22 +0200
commit0ca2796d60e8fa60e63af3fdeca5499cbbf6fed7 (patch)
tree73fd97ccd21599d974cdeb8f1bddde91704a54a5 /src/supplicant/nm-supplicant-interface.h
parenta7de48515c50c35376a782ca67fbb6539e793c1f (diff)
supplicant-interface: add async disconnect
allow to call dbus method "Disconnect" and handle a callback given by the caller. This allows graceful disconnects that require to wait for the operation to complete.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index 8e9eede6f..d6d226cbb 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -116,6 +116,16 @@ nm_supplicant_interface_assoc (NMSupplicantInterface *self,
void nm_supplicant_interface_disconnect (NMSupplicantInterface * iface);
+typedef void (*NMSupplicantInterfaceDisconnectCb) (NMSupplicantInterface *iface,
+ GError *error,
+ gpointer user_data);
+
+void
+nm_supplicant_interface_disconnect_async (NMSupplicantInterface * self,
+ GCancellable * cancellable,
+ NMSupplicantInterfaceDisconnectCb callback,
+ gpointer user_data);
+
const char *nm_supplicant_interface_get_object_path (NMSupplicantInterface * iface);
void nm_supplicant_interface_request_scan (NMSupplicantInterface *self,