Add experimental netlink support
[connman] / src / connman.h
1 /*
2  *
3  *  Connection Manager
4  *
5  *  Copyright (C) 2007  Intel Corporation. All rights reserved.
6  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #include <stdio.h>
23
24 #define DBG(fmt, arg...)  printf("%s: " fmt "\n" , __FUNCTION__ , ## arg)
25 //#define DBG(fmt, arg...)
26
27 #include <dbus/dbus.h>
28
29 #define CONNMAN_SERVICE  "org.freedesktop.connman"
30
31 #define CONNMAN_MANAGER_PATH "/"
32 #define CONNMAN_MANAGER_INTERFACE  CONNMAN_SERVICE ".Manager"
33
34 #define CONNMAN_IFACE_BASEPATH  "/interface"
35 #define CONNMAN_IFACE_INTERFACE  CONNMAN_SERVICE ".Interface"
36
37 #include <connman/plugin.h>
38
39 int __connman_plugin_init(void);
40 void __connman_plugin_cleanup(void);
41
42 #include <connman/iface.h>
43
44 int __connman_iface_init(DBusConnection *conn);
45 void __connman_iface_cleanup(void);
46
47 #include <connman/rtnl.h>
48
49 int __connman_rtnl_init(void);
50 void __connman_rtnl_cleanup(void);
51
52 #include <connman/dhcp.h>
53
54 int __connman_dhcp_request(struct connman_iface *iface);
55 int __connman_dhcp_release(struct connman_iface *iface);