summaryrefslogtreecommitdiff
path: root/libnm/nm-client.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-19 14:41:58 -0400
commitcdfdb4538d43dddf2a5e6c4f6d66ba0060d92466 (patch)
tree27986f17c2aff6359cbbb4f4f5b3a05c5a6a2290 /libnm/nm-client.h
parent20789b4743fce69012cbe49f4ead3ede46f46f77 (diff)
downloadNetworkManager-danw/libnm-api.tar.gz
libnm: add some missing sync/async method variantsdanw/libnm-api
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-client.h')
-rw-r--r--libnm/nm-client.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/libnm/nm-client.h b/libnm/nm-client.h
index 2c9de43677..76f59f1f28 100644
--- a/libnm/nm-client.h
+++ b/libnm/nm-client.h
@@ -198,10 +198,18 @@ NMActiveConnection *nm_client_add_and_activate_connection_finish (NMClient *clie
GAsyncResult *result,
GError **error);
-gboolean nm_client_deactivate_connection (NMClient *client,
- NMActiveConnection *active,
- GCancellable *cancellable,
- GError **error);
+gboolean nm_client_deactivate_connection (NMClient *client,
+ NMActiveConnection *active,
+ GCancellable *cancellable,
+ GError **error);
+void nm_client_deactivate_connection_async (NMClient *client,
+ NMActiveConnection *active,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean nm_client_deactivate_connection_finish (NMClient *client,
+ GAsyncResult *result,
+ GError **error);
gboolean nm_client_networking_get_enabled (NMClient *client);
void nm_client_networking_set_enabled (NMClient *client, gboolean enabled);