summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-remote-settings.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-04-22 11:55:52 -0500
committerDan Williams <dcbw@redhat.com>2011-04-22 12:29:07 -0500
commit4cae0bb0faab5f9a6cae6306d63db172f085760e (patch)
tree8c1b001aa0866266650fc51fd11ffe0e1bb70aaa /libnm-glib/nm-remote-settings.h
parentbb8e9a0b182c8a47df645cd10f3ae3e8fe8a391a (diff)
downloadNetworkManager-4cae0bb0faab5f9a6cae6306d63db172f085760e.tar.gz
settings: add a GetConnectionByUuid method
If the client knows the UUID, add a convenience function to get the connection path directly, instead of having to iterate the whole connection list and get each connection's details and then check the UUID.
Diffstat (limited to 'libnm-glib/nm-remote-settings.h')
-rw-r--r--libnm-glib/nm-remote-settings.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnm-glib/nm-remote-settings.h b/libnm-glib/nm-remote-settings.h
index f6ea5fbe78..e882e4fa13 100644
--- a/libnm-glib/nm-remote-settings.h
+++ b/libnm-glib/nm-remote-settings.h
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2008 Novell, Inc.
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009 - 2011 Red Hat, Inc.
*/
#ifndef NM_REMOTE_SETTINGS_H
@@ -115,6 +115,9 @@ GSList *nm_remote_settings_list_connections (NMRemoteSettings *settings);
NMRemoteConnection * nm_remote_settings_get_connection_by_path (NMRemoteSettings *settings,
const char *path);
+NMRemoteConnection *nm_remote_settings_get_connection_by_uuid (NMRemoteSettings *settings,
+ const char *uuid);
+
gboolean nm_remote_settings_add_connection (NMRemoteSettings *settings,
NMConnection *connection,
NMRemoteSettingsAddConnectionFunc callback,