All elements are fully stateless
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 21:29:15 +0000 (22:29 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 21:29:15 +0000 (22:29 +0100)
include/element.h
src/element.c

index 30d9a11c22a5e0500f2b5185206dac2be8ba3072..6a3f98fbb1bb65f47c2b82f7867ec3e7a31289d9 100644 (file)
@@ -38,13 +38,6 @@ extern "C" {
  * @short_description: Functions for handling elements
  */
 
-enum connman_element_state {
-       CONNMAN_ELEMENT_STATE_UNKNOWN   = 0,
-       CONNMAN_ELEMENT_STATE_CONNECT   = 1,
-       CONNMAN_ELEMENT_STATE_CONNECTED = 2,
-       CONNMAN_ELEMENT_STATE_CLOSED    = 3,
-};
-
 enum connman_element_policy {
        CONNMAN_ELEMENT_POLICY_UNKNOWN = 0,
        CONNMAN_ELEMENT_POLICY_IGNORE  = 1,
@@ -77,7 +70,6 @@ struct connman_element {
        gchar *name;
        gchar *path;
        enum connman_element_type type;
-       enum connman_element_state state;
        enum connman_element_policy policy;
        gboolean enabled;
        guint16 priority;
index a81f755066adfe376969d5f717f895766575d12d..f28e57d170ba3def666d87d7d542eb87b02f3a10 100644 (file)
@@ -603,7 +603,6 @@ struct connman_element *connman_element_create(const char *name)
 
        element->name    = g_strdup(name);
        element->type    = CONNMAN_ELEMENT_TYPE_UNKNOWN;
-       element->state   = CONNMAN_ELEMENT_STATE_CLOSED;
        element->policy  = CONNMAN_ELEMENT_POLICY_AUTO;
        element->index   = -1;
        element->enabled = FALSE;