Add missing service states
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2009 22:32:06 +0000 (00:32 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Apr 2009 04:02:47 +0000 (21:02 -0700)
src/profile.c

index abb2d235c4bbd55316bc0eddbeb5c480ba3f0e1f..cf98d88e28ff482c9994b79905746fd0b9f68ee5 100644 (file)
@@ -38,8 +38,13 @@ enum connman_service_type {
 };
 
 enum connman_service_state {
-       CONNMAN_SERVICE_STATE_UNKNOWN = 0,
-       CONNMAN_SERVICE_STATE_IDLE    = 1,
+       CONNMAN_SERVICE_STATE_UNKNOWN       = 0,
+       CONNMAN_SERVICE_STATE_IDLE          = 1,
+       CONNMAN_SERVICE_STATE_ASSOCIATION   = 2,
+       CONNMAN_SERVICE_STATE_CONFIGURATION = 3,
+       CONNMAN_SERVICE_STATE_READY         = 4,
+       CONNMAN_SERVICE_STATE_DISCONNECT    = 5,
+       CONNMAN_SERVICE_STATE_FAILURE       = 6,
 };
 
 struct connman_group {
@@ -83,6 +88,16 @@ static const char *state2string(enum connman_service_state state)
                break;
        case CONNMAN_SERVICE_STATE_IDLE:
                return "idle";
+       case CONNMAN_SERVICE_STATE_ASSOCIATION:
+               return "association";
+       case CONNMAN_SERVICE_STATE_CONFIGURATION:
+               return "configuration";
+       case CONNMAN_SERVICE_STATE_READY:
+               return "ready";
+       case CONNMAN_SERVICE_STATE_DISCONNECT:
+               return "disconnect";
+       case CONNMAN_SERVICE_STATE_FAILURE:
+               return "failure";
        }
 
        return NULL;