summaryrefslogtreecommitdiff
path: root/libnm/nm-device-wifi.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-09-11 16:27:13 -0400
committerDan Winship <danw@gnome.org>2014-09-25 09:29:21 -0400
commit41eca3ea490c819c263aa986e1e9bad813dcfe47 (patch)
tree44027aaf38f41def3637818eb858d16025828556 /libnm/nm-device-wifi.h
parent2237ea3ddbe602446ac87a8a055a6d719c4a0f6c (diff)
downloadNetworkManager-41eca3ea490c819c263aa986e1e9bad813dcfe47.tar.gz
libnm: add some missing sync/async method variants
Add the missing variant in most places in the API where previously there was either only a synchronous version or only an asynchronous version. There is not yet a synchronous nm_client_activate_connection(), nm_client_add_and_activate_connection(), or nm_remote_settings_add_connection(), because the existing async code depends on waiting for other asynchronous events, so making them run synchronously is slightly more complicated. But these APIs can be added later.
Diffstat (limited to 'libnm/nm-device-wifi.h')
-rw-r--r--libnm/nm-device-wifi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm/nm-device-wifi.h b/libnm/nm-device-wifi.h
index bd7b7d7210..bb9788cc07 100644
--- a/libnm/nm-device-wifi.h
+++ b/libnm/nm-device-wifi.h
@@ -100,6 +100,10 @@ NMAccessPoint * nm_device_wifi_get_access_point_by_path (NMDeviceWifi *
const GPtrArray * nm_device_wifi_get_access_points (NMDeviceWifi *device);
+gboolean nm_device_wifi_request_scan (NMDeviceWifi *device,
+ GCancellable *cancellable,
+ GError **error);
+
void nm_device_wifi_request_scan_async (NMDeviceWifi *device,
GCancellable *cancellable,
GAsyncReadyCallback callback,