summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-02-23 10:25:49 -0600
committerDan Williams <dcbw@redhat.com>2011-02-23 10:25:49 -0600
commitc5cc53a55762ad05d9d63581e880973ceb73aa66 (patch)
treefae810e955996600ecdde8c5b2fa39431531d347 /include
parent30f39c172be2ac7955056bb9fbf11e697561115d (diff)
downloadNetworkManager-c5cc53a55762ad05d9d63581e880973ceb73aa66.tar.gz
core: add new SECONDARIES device state for dependent connections
Will be used for things like activating a VPN connection before signaling that the device is activated, or maybe for bridges and bonds, to ensure that applications don't think the system has connectivity before everything is set up.
Diffstat (limited to 'include')
-rw-r--r--include/NetworkManager.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/NetworkManager.h b/include/NetworkManager.h
index c83ad37fdf..4b68731536 100644
--- a/include/NetworkManager.h
+++ b/include/NetworkManager.h
@@ -201,6 +201,9 @@ typedef enum {
* required for the requested network connection. This may include checking
* whether only local network access is available, whether a captive portal
* is blocking access to the Internet, etc.
+ * @NM_DEVICE_STATE_SECONDARIES: the device is waiting for a secondary
+ * connection (like a VPN) which must activated before the device can be
+ * activated
* @NM_DEVICE_STATE_ACTIVATED: the device has a network connection, either local
* or global.
* @NM_DEVICE_STATE_DEACTIVATING: the device's network connection is no longer
@@ -218,9 +221,10 @@ typedef enum {
NM_DEVICE_STATE_NEED_AUTH = 60,
NM_DEVICE_STATE_IP_CONFIG = 70,
NM_DEVICE_STATE_IP_CHECK = 80,
- NM_DEVICE_STATE_ACTIVATED = 90,
- NM_DEVICE_STATE_DEACTIVATING = 100,
- NM_DEVICE_STATE_FAILED = 110
+ NM_DEVICE_STATE_SECONDARIES = 90,
+ NM_DEVICE_STATE_ACTIVATED = 100,
+ NM_DEVICE_STATE_DEACTIVATING = 110,
+ NM_DEVICE_STATE_FAILED = 120
} NMDeviceState;