summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-06-16 09:44:53 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-06-16 15:26:11 +0200
commitf1b58c3faed91ddae6755b5cc0d211cc8aa32574 (patch)
tree783e340c4a48f88ee89783926f4cee7e9e53ec49 /include
parent972d3cdce00e7d7a4a0c1025072c507db1fa2a31 (diff)
downloadconnman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.tar.gz
connman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.tar.bz2
connman-f1b58c3faed91ddae6755b5cc0d211cc8aa32574.zip
element: Remove element.c
Diffstat (limited to 'include')
-rw-r--r--include/driver.h58
-rw-r--r--include/element.h120
2 files changed, 0 insertions, 178 deletions
diff --git a/include/driver.h b/include/driver.h
deleted file mode 100644
index 7c4f4057..00000000
--- a/include/driver.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- *
- * Connection Manager
- *
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
-#ifndef __CONNMAN_DRIVER_H
-#define __CONNMAN_DRIVER_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <connman/element.h>
-
-/**
- * SECTION:driver
- * @title: Driver premitives
- * @short_description: Functions for registering drivers
- */
-
-#define CONNMAN_DRIVER_PRIORITY_LOW -100
-#define CONNMAN_DRIVER_PRIORITY_DEFAULT 0
-#define CONNMAN_DRIVER_PRIORITY_HIGH 100
-
-struct connman_driver {
- const char *name;
- enum connman_element_type type;
- int priority;
- int (*probe) (struct connman_element *element);
- void (*remove) (struct connman_element *element);
- void (*update) (struct connman_element *element);
- void (*change) (struct connman_element *element);
-};
-
-int connman_driver_register(struct connman_driver *driver);
-void connman_driver_unregister(struct connman_driver *driver);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __CONNMAN_DRIVER_H */
diff --git a/include/element.h b/include/element.h
deleted file mode 100644
index 3499cdf8..00000000
--- a/include/element.h
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- *
- * Connection Manager
- *
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
-#ifndef __CONNMAN_ELEMENT_H
-#define __CONNMAN_ELEMENT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <errno.h>
-#include <glib.h>
-
-#include <connman/property.h>
-#include <connman/types.h>
-#include <connman/ipconfig.h>
-
-/**
- * SECTION:element
- * @title: Element premitives
- * @short_description: Functions for handling elements
- */
-
-enum connman_element_type {
- CONNMAN_ELEMENT_TYPE_UNKNOWN = 0,
- CONNMAN_ELEMENT_TYPE_ROOT = 1,
-};
-
-enum connman_element_state {
- CONNMAN_ELEMENT_STATE_UNKNOWN = 0,
- CONNMAN_ELEMENT_STATE_ERROR = 1,
- CONNMAN_ELEMENT_STATE_IDLE = 2,
- CONNMAN_ELEMENT_STATE_DONE = 3,
-};
-
-enum connman_element_error {
- CONNMAN_ELEMENT_ERROR_UNKNOWN = 0,
- CONNMAN_ELEMENT_ERROR_FAILED = 1,
-};
-
-struct connman_driver;
-
-struct connman_element {
- gint refcount;
- gint index;
- gchar *name;
- gchar *path;
- enum connman_element_type type;
- enum connman_element_state state;
- enum connman_element_error error;
- gboolean enabled;
- gchar *devname;
-
- GHashTable *children;
- struct connman_element *parent;
-
- struct connman_driver *driver;
- void *driver_data;
-
- void (*destruct) (struct connman_element *element);
-
- union {
- void *private;
- };
-
- GHashTable *properties;
-};
-
-struct connman_element *connman_element_create(const char *name);
-struct connman_element *connman_element_ref(struct connman_element *element);
-void connman_element_unref(struct connman_element *element);
-
-int connman_element_get_value(struct connman_element *element,
- enum connman_property_id id, void *value);
-
-int connman_element_set_string(struct connman_element *element,
- const char *key, const char *value);
-const char *connman_element_get_string(struct connman_element *element,
- const char *key);
-int connman_element_set_bool(struct connman_element *element,
- const char *key, connman_bool_t value);
-connman_bool_t connman_element_get_bool(struct connman_element *element,
- const char *key);
-int connman_element_set_uint8(struct connman_element *element,
- const char *key, connman_uint8_t value);
-connman_uint8_t connman_element_get_uint8(struct connman_element *element,
- const char *key);
-int connman_element_set_blob(struct connman_element *element,
- const char *key, const void *data, unsigned int size);
-const void *connman_element_get_blob(struct connman_element *element,
- const char *key, unsigned int *size);
-
-int connman_element_register(struct connman_element *element,
- struct connman_element *parent);
-void connman_element_unregister(struct connman_element *element);
-void connman_element_unregister_children(struct connman_element *element);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __CONNMAN_ELEMENT_H */