void network_manager_exit(void) { server_exit(); btd_unregister_device_driver(&network_panu_driver); btd_unregister_device_driver(&network_gn_driver); btd_unregister_device_driver(&network_nap_driver); connection_exit(); btd_unregister_adapter_driver(&network_server_driver); dbus_connection_unref(connection); connection = NULL; bnep_cleanup(); }
void network_manager_exit(void) { if (conf->server_enabled) server_exit(); if (conf->connection_enabled) connection_exit(); g_dbus_unregister_interface(connection, NETWORK_PATH, NETWORK_MANAGER_INTERFACE); dbus_connection_unref(connection); connection = NULL; bnep_cleanup(); bridge_cleanup(); }