Add init and cleanup calls for device abstraction
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Oct 2008 19:36:00 +0000 (21:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Oct 2008 19:36:00 +0000 (21:36 +0200)
src/element.c

index c045c69..78a550e 100644 (file)
@@ -1229,6 +1229,8 @@ int __connman_element_init(DBusConnection *conn, const char *device)
        thread_unregister_children = g_thread_pool_new(unregister_children,
                                                        NULL, 1, FALSE, NULL);
 
+       __connman_device_init();
+
        return 0;
 }
 
@@ -1266,6 +1268,8 @@ void __connman_element_cleanup(void)
 {
        DBG("");
 
+       __connman_device_cleanup();
+
        g_thread_pool_free(thread_register, TRUE, TRUE);
        thread_register = NULL;