diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-11 00:55:20 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-11 00:55:20 -0700 |
commit | 213dec4c14f6c15bf91273185dfbc802339edc33 (patch) | |
tree | 8f4356747aaa9e4889a55e8eb01209f8c5d9a7f4 /include/inet.h | |
parent | 4415df317fd3c9356635703b1d3cdd329112caef (diff) | |
download | connman-213dec4c14f6c15bf91273185dfbc802339edc33.tar.gz connman-213dec4c14f6c15bf91273185dfbc802339edc33.tar.bz2 connman-213dec4c14f6c15bf91273185dfbc802339edc33.zip |
Use global IP address structure for transaction
Diffstat (limited to 'include/inet.h')
-rw-r--r-- | include/inet.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/inet.h b/include/inet.h index 66285d80..d943a262 100644 --- a/include/inet.h +++ b/include/inet.h @@ -22,13 +22,14 @@ #ifndef __CONNMAN_INET_H #define __CONNMAN_INET_H -#ifdef __cplusplus -extern "C" { -#endif - #include <arpa/inet.h> #include <connman/device.h> +#include <connman/ipconfig.h> + +#ifdef __cplusplus +extern "C" { +#endif int connman_inet_ifindex(const char *name); char *connman_inet_ifname(int index); @@ -38,8 +39,7 @@ int connman_inet_ifdown(int index); struct connman_device *connman_inet_create_device(int index); -int connman_inet_set_address(int index, struct in_addr address, - struct in_addr netmask, struct in_addr broadcast); +int connman_inet_set_address(int index, struct connman_ipaddress *ipaddress); int connman_inet_clear_address(int index); int connman_inet_set_gateway(int index, struct in_addr gateway); |