diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-27 08:26:12 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-27 08:26:12 +0100 |
commit | ebbf5aeca9880a3dce73effa17ba13caf3be3837 (patch) | |
tree | ecf7ed4d8179a43a870b9ad5fbad9bd5ab8dc206 /src | |
parent | fd31f66180b7960edb1283bcbc80897eca134a03 (diff) | |
download | connman-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.h | 1 | ||||
-rw-r--r-- | src/element.c | 5 | ||||
-rw-r--r-- | src/main.c | 2 |
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; @@ -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(); |