add a function for adding a virtual device (not tracked in the avl tree)
[project/netifd.git] / device.h
index 9e7d309..bf93ebc 100644 (file)
--- a/device.h
+++ b/device.h
@@ -79,6 +79,7 @@ struct device_hotplug_ops {
        int (*del)(struct device *main, struct device *member);
 };
 
+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);
 struct device *get_device(const char *name, bool create);