diff options
author | Dan Williams <dcbw@redhat.com> | 2011-02-09 16:34:42 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-02-09 16:34:42 -0600 |
commit | c5235f87db7354aa24b8ef0c9c7854d0d50108c6 (patch) | |
tree | 6a51fe0a3817786e6a0b9b5dd27c9c4906ef54c2 /libnm-util/nm-connection.h | |
parent | 09d608b99ca533c973e2fe1b0b3cd2ed0203a997 (diff) | |
download | NetworkManager-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.h | 5 |
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 */ |