summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-active-connection.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-04-22 11:29:09 -0500
committerDan Williams <dcbw@redhat.com>2011-04-22 12:29:07 -0500
commitbb8e9a0b182c8a47df645cd10f3ae3e8fe8a391a (patch)
treeff73439ff9363ea3ccad49abe6ffef78f0d7a740 /libnm-glib/nm-active-connection.h
parent5f627a52e5ba03981f110263f2e96dda5608a23f (diff)
downloadNetworkManager-bb8e9a0b182c8a47df645cd10f3ae3e8fe8a391a.tar.gz
api: add "Uuid" property to ActiveConnection interface
A convenience so that clients which might key certain operations off which connections are active (checking work mail only when on VPN for example) can more easily get which connections are active. This would allow those apps to store the UUID (which they would already be doing) and not have to create a Connection proxy and then get the connection properties just to retrieve the UUID of the connection. Instead they can now get it from GetAll of the ActiveConnection object, which they would already be doing.
Diffstat (limited to 'libnm-glib/nm-active-connection.h')
-rw-r--r--libnm-glib/nm-active-connection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnm-glib/nm-active-connection.h b/libnm-glib/nm-active-connection.h
index a641e7c1a5..974e551a16 100644
--- a/libnm-glib/nm-active-connection.h
+++ b/libnm-glib/nm-active-connection.h
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
- * Copyright (C) 2007 - 2010 Red Hat, Inc.
+ * Copyright (C) 2007 - 2011 Red Hat, Inc.
* Copyright (C) 2008 Novell, Inc.
*/
@@ -40,6 +40,7 @@ G_BEGIN_DECLS
#define NM_ACTIVE_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass))
#define NM_ACTIVE_CONNECTION_CONNECTION "connection"
+#define NM_ACTIVE_CONNECTION_UUID "uuid"
#define NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT "specific-object"
#define NM_ACTIVE_CONNECTION_DEVICES "devices"
#define NM_ACTIVE_CONNECTION_STATE "state"
@@ -67,6 +68,7 @@ GType nm_active_connection_get_type (void);
GObject *nm_active_connection_new (DBusGConnection *connection, const char *path);
const char * nm_active_connection_get_connection (NMActiveConnection *connection);
+const char * nm_active_connection_get_uuid (NMActiveConnection *connection);
const char * nm_active_connection_get_specific_object (NMActiveConnection *connection);
const GPtrArray *nm_active_connection_get_devices (NMActiveConnection *connection);
NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *connection);