summaryrefslogtreecommitdiff
path: root/libnm-util/nm-connection.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-02-09 16:34:42 -0600
committerDan Williams <dcbw@redhat.com>2011-02-09 16:34:42 -0600
commitc5235f87db7354aa24b8ef0c9c7854d0d50108c6 (patch)
tree6a51fe0a3817786e6a0b9b5dd27c9c4906ef54c2 /libnm-util/nm-connection.h
parent09d608b99ca533c973e2fe1b0b3cd2ed0203a997 (diff)
downloadNetworkManager-c5235f87db7354aa24b8ef0c9c7854d0d50108c6.tar.gz
libnm-util: add connection helpers for ID and UUID
Shortcuts. Getting the ID and UUID is used in a ton of places and this helps cut down on code.
Diffstat (limited to 'libnm-util/nm-connection.h')
-rw-r--r--libnm-util/nm-connection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnm-util/nm-connection.h b/libnm-util/nm-connection.h
index 02266b1ff0..fce715ab18 100644
--- a/libnm-util/nm-connection.h
+++ b/libnm-util/nm-connection.h
@@ -141,6 +141,11 @@ GType nm_connection_lookup_setting_type (const char *name);
GType nm_connection_lookup_setting_type_by_quark (GQuark error_quark);
+/* Helpers */
+const char * nm_connection_get_uuid (NMConnection *connection);
+
+const char * nm_connection_get_id (NMConnection *connection);
+
G_END_DECLS
#endif /* NM_CONNECTION_H */