From 8c12ec683a443b72c600751e3496a790bade6981 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Mon, 12 Nov 2012 14:07:19 +0200 Subject: 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. --- include/device.h | 1 + include/inet.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3