From 222869a7ef38f5b2064e5e4f85710f7fb0e0e641 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 9 Sep 2009 07:11:29 -0700 Subject: [PATCH] include: number device activation stages in NetworkManager.h --- include/NetworkManager.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/NetworkManager.h b/include/NetworkManager.h index 63b9dd18b0..91076c2038 100644 --- a/include/NetworkManager.h +++ b/include/NetworkManager.h @@ -174,7 +174,7 @@ typedef enum * Allowed next states: * UNAVAILABLE: the device is now managed by NetworkManager */ - NM_DEVICE_STATE_UNMANAGED, + NM_DEVICE_STATE_UNMANAGED = 1, /* Indicates the device is not yet ready for use, but is managed by * NetworkManager. For Ethernet devices, the device may not have an @@ -185,7 +185,7 @@ typedef enum * UNMANAGED: the device is no longer managed by NetworkManager * DISCONNECTED: the device is now ready for use */ - NM_DEVICE_STATE_UNAVAILABLE, + NM_DEVICE_STATE_UNAVAILABLE = 2, /* Indicates the device does not have an activate connection to anything. * @@ -194,7 +194,7 @@ typedef enum * UNAVAILABLE: the device is no longer ready for use (rfkill, no carrier, etc) * PREPARE: the device has started activation */ - NM_DEVICE_STATE_DISCONNECTED, + NM_DEVICE_STATE_DISCONNECTED = 3, /* Indicate states in device activation. * @@ -206,10 +206,10 @@ typedef enum * ACTIVATED: (IP_CONFIG only) activation was successful * DISCONNECTED: the device's connection is no longer valid, or NetworkManager went to sleep */ - NM_DEVICE_STATE_PREPARE, - NM_DEVICE_STATE_CONFIG, - NM_DEVICE_STATE_NEED_AUTH, - NM_DEVICE_STATE_IP_CONFIG, + NM_DEVICE_STATE_PREPARE = 4, + NM_DEVICE_STATE_CONFIG = 5, + NM_DEVICE_STATE_NEED_AUTH = 6, + NM_DEVICE_STATE_IP_CONFIG = 7, /* Indicates the device is part of an active network connection. * @@ -219,7 +219,7 @@ typedef enum * FAILED: a DHCP lease was not renewed, or another error * DISCONNECTED: the device's connection is no longer valid, or NetworkManager went to sleep */ - NM_DEVICE_STATE_ACTIVATED, + NM_DEVICE_STATE_ACTIVATED = 8, /* Indicates the device's activation failed. * @@ -228,7 +228,7 @@ typedef enum * UNAVAILABLE: the device is no longer ready for use (rfkill, no carrier, etc) * DISCONNECTED: the device's connection is ready for activation, or NetworkManager went to sleep */ - NM_DEVICE_STATE_FAILED + NM_DEVICE_STATE_FAILED = 9 } NMDeviceState;