summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-27 18:40:01 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-03-27 18:40:01 +0200
commit5483940df7a35d052d195a2fa1db29763f795ad0 (patch)
treea4ea566ef079b54836dc810b14bd7bfd94d6c566 /device.h
parent0b7be79bc1fe58c0c19c0c21b1200b098186432f (diff)
add a function for adding a virtual device (not tracked in the avl tree)
Diffstat (limited to 'device.h')
-rw-r--r--device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/device.h b/device.h
index 9e7d309..bf93ebc 100644
--- 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);