Remove new unused special carrier state of a service
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Dec 2009 09:24:06 +0000 (10:24 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Dec 2009 09:24:06 +0000 (10:24 +0100)
doc/overview-api.txt
include/service.h
src/service.c

index 97677aea84368ce5ee3501740d3ed292d572c5c7..8bc387d92f25576cdd188fd60d723fdf2f78657e 100644 (file)
@@ -256,10 +256,6 @@ The basic state of every service is "idle". This means that this service
 is not in use at all at the moment. It also is not attempting to connect
 or do anything else.
 
-With Ethernet services a special "carrier" state is available. It indicates
-that the cable has been plugged in. This state is only used when the device
-is from type Ethernet.
-
 The "association" state indicates that this service tries to establish a
 low-level connection to the network. For example associating/connecting
 with a WiFi access point.
@@ -283,13 +279,6 @@ the "idle" state since the service is not connected.
                +---------------+
                | idle          |<-------------------------------+
                +---------------+                                |
-                     |    |                                     |
-                     |    +----------------------+              |
-                     |                           |              |
-                     |                           V              |
-                     |                      +-------------+     |
-                     +----------------------| carrier     |<----+
-                     |                      +-------------+     |
                      |                                          |
                      |                      +-------------+     |
                      +----------------------| failure     |     |
index 3ec7125c037d0ace0bda8f77d41b9e24a5efe07a..ec80ab35f6b6dd4fc2d8220157b1eab4b36d5b4c 100644 (file)
@@ -63,10 +63,9 @@ enum connman_service_security {
 enum connman_service_state {
        CONNMAN_SERVICE_STATE_UNKNOWN       = 0,
        CONNMAN_SERVICE_STATE_IDLE          = 1,
-       CONNMAN_SERVICE_STATE_CARRIER       = 2,
-       CONNMAN_SERVICE_STATE_ASSOCIATION   = 3,
-       CONNMAN_SERVICE_STATE_CONFIGURATION = 4,
-       CONNMAN_SERVICE_STATE_READY         = 5,
+       CONNMAN_SERVICE_STATE_ASSOCIATION   = 2,
+       CONNMAN_SERVICE_STATE_CONFIGURATION = 3,
+       CONNMAN_SERVICE_STATE_READY         = 4,
        CONNMAN_SERVICE_STATE_DISCONNECT    = 6,
        CONNMAN_SERVICE_STATE_FAILURE       = 7,
 };
index 9caa50577373acb28307add4f570f53a621f96d8..c4485ac576ec8f988222a18d597c237edbbd38d8 100644 (file)
@@ -180,8 +180,6 @@ static const char *state2string(enum connman_service_state state)
                break;
        case CONNMAN_SERVICE_STATE_IDLE:
                return "idle";
-       case CONNMAN_SERVICE_STATE_CARRIER:
-               return "carrier";
        case CONNMAN_SERVICE_STATE_ASSOCIATION:
                return "association";
        case CONNMAN_SERVICE_STATE_CONFIGURATION:
@@ -818,7 +816,6 @@ static connman_bool_t is_connecting(struct connman_service *service)
        switch (service->state) {
        case CONNMAN_SERVICE_STATE_UNKNOWN:
        case CONNMAN_SERVICE_STATE_IDLE:
-       case CONNMAN_SERVICE_STATE_CARRIER:
        case CONNMAN_SERVICE_STATE_FAILURE:
        case CONNMAN_SERVICE_STATE_DISCONNECT:
        case CONNMAN_SERVICE_STATE_READY: