summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-active-connection.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2008-04-22 00:28:02 +0000
committerDan Williams <dcbw@redhat.com>2008-04-22 00:28:02 +0000
commit675d12263a43342a3d212c0827982bf2e8125386 (patch)
tree1716dd951faf95ef83580234dc88d4e853ce795e /libnm-glib/nm-active-connection.h
parentc96148167795596b106b51cf0de5e838ac7edfc8 (diff)
downloadNetworkManager-675d12263a43342a3d212c0827982bf2e8125386.tar.gz
2008-04-21 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h - Add NMActiveConnectionState enum * introspection/nm-active-connection.xml introspection/nm-vpn-connection.xml - Add 'State' property for overall active connection state - Add 'Default' property, when True means this active connection has the default route - Add PropertyChanged signals so changes actually go out over the bus * src/nm-active-connection.h - Add defines for State & Default properties * src/nm-activation-request.c - Add 'state' and 'default' properties, hook up to device 'state-changed' signal to determine active connection state * src/vpn-manager/nm-vpn-connection.c src/vpn-manager/nm-vpn-connection.h src/vpn-manager/nm-vpn-manager.c src/vpn-manager/nm-vpn-service.c - Rename old 'state' to 'vpn-state' - Rename nm_vpn_connection_get_state() -> nm_vpn_connection_get_vpn_state() - Add 'state' and 'default' properties, hook up to the vpn connection's 'vpn-state-changed' signal * libnm-glib/nm-active-connection.c libnm-glib/nm-active-connection.h - Add new 'state' and 'default' properties and accessors * libnm-glib/nm-vpn-connection.c libnm-glib/nm-vpn-connection.h - Rename old 'state' property to 'vpn-state' - Add new 'state' and 'default' properties and accessors git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3582 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'libnm-glib/nm-active-connection.h')
-rw-r--r--libnm-glib/nm-active-connection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnm-glib/nm-active-connection.h b/libnm-glib/nm-active-connection.h
index bf4129f7f5..948c407b56 100644
--- a/libnm-glib/nm-active-connection.h
+++ b/libnm-glib/nm-active-connection.h
@@ -5,6 +5,7 @@
#include <glib-object.h>
#include "nm-object.h"
#include <nm-connection.h>
+#include <NetworkManager.h>
G_BEGIN_DECLS
@@ -21,6 +22,8 @@ G_BEGIN_DECLS
#define NM_ACTIVE_CONNECTION_SHARED_SERVICE_NAME "shared-service-name"
#define NM_ACTIVE_CONNECTION_SHARED_CONNECTION "shared-connection"
#define NM_ACTIVE_CONNECTION_DEVICES "devices"
+#define NM_ACTIVE_CONNECTION_STATE "state"
+#define NM_ACTIVE_CONNECTION_DEFAULT "default"
typedef struct {
NMObject parent;
@@ -41,6 +44,8 @@ const char * nm_active_connection_get_specific_object (NMActiveConnection *c
const char * nm_active_connection_get_shared_service_name (NMActiveConnection *connection);
const char * nm_active_connection_get_shared_connection (NMActiveConnection *connection);
const GPtrArray *nm_active_connection_get_devices (NMActiveConnection *connection);
+NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *connection);
+gboolean nm_active_connection_get_default (NMActiveConnection *connection);
G_END_DECLS