* @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,
gchar *name;
gchar *path;
enum connman_element_type type;
- enum connman_element_state state;
enum connman_element_policy policy;
gboolean enabled;
guint16 priority;
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;