summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-03 00:24:01 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-03 00:24:01 +0200
commit2cd93d4c17f093552c06c60427fe9ecfb4c0dbe8 (patch)
treef1093de9cd544d0519807dfdf4b9d8f35a6ebc36 /device.h
parentf9d0f688fa84f53dfde9bb2c0f04ec2528cf8a14 (diff)
use a common function for creating devices that avoids creating duplicates
Diffstat (limited to 'device.h')
-rw-r--r--device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/device.h b/device.h
index cb7146a..f1cdda0 100644
--- a/device.h
+++ b/device.h
@@ -102,6 +102,8 @@ extern const struct config_param_list device_attr_list;
extern const struct device_type simple_device_type;
extern const struct device_type bridge_device_type;
+struct device *device_create(const char *name, const struct device_type *type,
+ struct blob_attr *config);
void device_init_settings(struct device *dev, struct blob_attr **tb);
void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);