From 2cd93d4c17f093552c06c60427fe9ecfb4c0dbe8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 3 Oct 2011 00:24:01 +0200 Subject: use a common function for creating devices that avoids creating duplicates --- device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'device.h') 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); -- cgit v1.2.3