From ebbf5aeca9880a3dce73effa17ba13caf3be3837 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 27 Dec 2008 08:26:12 +0100 Subject: [PATCH] Add stage for stopping element registration --- src/connman.h | 1 + src/element.c | 5 +++++ src/main.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/connman.h b/src/connman.h index 44ff954..918cc7c 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 fbc5cc9..fbed4f6 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 357decb..51e1530 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(); -- 2.7.4