diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-03 00:24:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-03 00:24:01 +0200 |
commit | 2cd93d4c17f093552c06c60427fe9ecfb4c0dbe8 (patch) | |
tree | f1093de9cd544d0519807dfdf4b9d8f35a6ebc36 /device.h | |
parent | f9d0f688fa84f53dfde9bb2c0f04ec2528cf8a14 (diff) |
use a common function for creating devices that avoids creating duplicates
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |