5 * Copyright (C) 2007 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
24 #define DBG(fmt, arg...) printf("%s: " fmt "\n" , __FUNCTION__ , ## arg)
25 //#define DBG(fmt, arg...)
27 #include <dbus/dbus.h>
29 #define CONNMAN_SERVICE "org.freedesktop.connman"
31 #define CONNMAN_MANAGER_PATH "/"
32 #define CONNMAN_MANAGER_INTERFACE CONNMAN_SERVICE ".Manager"
34 #define CONNMAN_IFACE_BASEPATH "/interface"
35 #define CONNMAN_IFACE_INTERFACE CONNMAN_SERVICE ".Interface"
37 #include <connman/plugin.h>
39 int __connman_plugin_init(void);
40 void __connman_plugin_cleanup(void);
42 #include <connman/iface.h>
44 int __connman_iface_init(DBusConnection *conn);
45 void __connman_iface_cleanup(void);
47 #include <connman/dhcp.h>
49 int __connman_dhcp_request(struct connman_iface *iface);
50 int __connman_dhcp_release(struct connman_iface *iface);