summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-remote-settings.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-01-03 23:49:29 +0100
committerDan Winship <danw@gnome.org>2014-01-27 15:39:51 -0500
commitf76934de153b410aae125eee6281290850e9f5c3 (patch)
tree4e6c8de7a68a7658bcb00360ad194223550f52a9 /libnm-glib/nm-remote-settings.h
parent36ed2e91bb5ac60b420e59f66a92c019ccbbbbd4 (diff)
downloadNetworkManager-f76934de153b410aae125eee6281290850e9f5c3.tar.gz
libnm-glib: add function nm_remote_settings_get_connection_by_id()
Utility function, to search the list of connections for a connection with a matching id/name. Returns the first match. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-glib/nm-remote-settings.h')
-rw-r--r--libnm-glib/nm-remote-settings.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-glib/nm-remote-settings.h b/libnm-glib/nm-remote-settings.h
index e361dc04be..af2f3b2da1 100644
--- a/libnm-glib/nm-remote-settings.h
+++ b/libnm-glib/nm-remote-settings.h
@@ -124,6 +124,9 @@ NMRemoteSettings *nm_remote_settings_new_finish (GAsyncResult *result,
GSList *nm_remote_settings_list_connections (NMRemoteSettings *settings);
+NMRemoteConnection *nm_remote_settings_get_connection_by_id (NMRemoteSettings *settings,
+ const char *id);
+
NMRemoteConnection * nm_remote_settings_get_connection_by_path (NMRemoteSettings *settings,
const char *path);