summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-27 08:26:12 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-27 08:26:12 +0100
commitebbf5aeca9880a3dce73effa17ba13caf3be3837 (patch)
treeecf7ed4d8179a43a870b9ad5fbad9bd5ab8dc206 /src
parentfd31f66180b7960edb1283bcbc80897eca134a03 (diff)
downloadconnman-ebbf5aeca9880a3dce73effa17ba13caf3be3837.tar.gz
connman-ebbf5aeca9880a3dce73effa17ba13caf3be3837.tar.bz2
connman-ebbf5aeca9880a3dce73effa17ba13caf3be3837.zip
Add stage for stopping element registration
Diffstat (limited to 'src')
-rw-r--r--src/connman.h1
-rw-r--r--src/element.c5
-rw-r--r--src/main.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 44ff9543..918cc7c5 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -85,6 +85,7 @@ void __connman_driver_rescan(struct connman_driver *driver);
int __connman_element_init(DBusConnection *conn, const char *device);
void __connman_element_start(void);
+void __connman_element_stop(void);
void __connman_element_cleanup(void);
void __connman_element_list(struct connman_element *element,
diff --git a/src/element.c b/src/element.c
index fbc5cc90..fbed4f6b 100644
--- a/src/element.c
+++ b/src/element.c
@@ -1963,6 +1963,11 @@ void __connman_element_start(void)
started = TRUE;
}
+void __connman_element_stop(void)
+{
+ DBG("");
+}
+
static gboolean free_driver(GNode *node, gpointer data)
{
struct connman_element *element = node->data;
diff --git a/src/main.c b/src/main.c
index 357decb5..51e1530b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -177,6 +177,8 @@ int main(int argc, char *argv[])
g_main_loop_run(main_loop);
+ __connman_element_stop();
+
__connman_plugin_cleanup();
__connman_rtnl_cleanup();