use uci_to_blob for creating devices
[project/netifd.git] / device.h
index 0f8d382..bd5a581 100644 (file)
--- a/device.h
+++ b/device.h
@@ -125,6 +125,10 @@ free_device(struct device *dev)
        dev->type->free(dev);
 }
 
+extern const struct config_param_list device_attr_list;
+
+struct device *device_create(struct blob_attr *attr, struct uci_section *s);
+
 void init_virtual_device(struct device *dev, const struct device_type *type, const char *name);
 int init_device(struct device *iface, const struct device_type *type, const char *ifname);
 void cleanup_device(struct device *iface);