summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-12 14:07:19 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-23 12:58:50 +0200
commit8c12ec683a443b72c600751e3496a790bade6981 (patch)
tree42a84cb19b2ac739b7e5661502f9cdc8a292e88c /include
parent68dde4bb2c3e90a6f48dc48609636228dd186c8c (diff)
downloadconnman-8c12ec683a443b72c600751e3496a790bade6981.tar.gz
connman-8c12ec683a443b72c600751e3496a790bade6981.tar.bz2
connman-8c12ec683a443b72c600751e3496a790bade6981.zip
device: Move device creation func into device.c
The device creation function should be part of device.c and not inet.c. After this change the inet.c can be used by separate vpn daemon.
Diffstat (limited to 'include')
-rw-r--r--include/device.h1
-rw-r--r--include/inet.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/device.h b/include/device.h
index 470059b1..d3746551 100644
--- a/include/device.h
+++ b/include/device.h
@@ -113,6 +113,7 @@ int connman_device_set_regdom(struct connman_device *device,
const char *alpha2);
void connman_device_regdom_notify(struct connman_device *device,
int result, const char *alpha2);
+struct connman_device *connman_device_create_from_index(int index);
struct connman_device_driver {
const char *name;
diff --git a/include/inet.h b/include/inet.h
index 6bdcc91d..8f7a35cb 100644
--- a/include/inet.h
+++ b/include/inet.h
@@ -41,7 +41,6 @@ short int connman_inet_ifflags(int index);
int connman_inet_ifup(int index);
int connman_inet_ifdown(int index);
-struct connman_device *connman_inet_create_device(int index);
connman_bool_t connman_inet_is_cfg80211(int index);
int connman_inet_set_address(int index, struct connman_ipaddress *ipaddress);