5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 static int connection_probe(struct connman_element *element)
30 DBG("element %p name %s", element, element->name);
35 static void connection_remove(struct connman_element *element)
37 DBG("element %p name %s", element, element->name);
40 static struct connman_driver connection_driver = {
42 .type = CONNMAN_ELEMENT_TYPE_CONNECTION,
43 .priority = CONNMAN_DRIVER_PRIORITY_LOW,
44 .probe = connection_probe,
45 .remove = connection_remove,
48 static DBusConnection *connection;
50 int __connman_connection_init(void)
54 connection = connman_dbus_get_connection();
56 return connman_driver_register(&connection_driver);
59 void __connman_connection_cleanup(void)
63 connman_driver_unregister(&connection_driver);
65 dbus_connection_unref(connection);