X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.h;h=e13e43509bee8334330a4a32d2f7f11c6bbc556c;hp=b069a2b4ddf8b5fef805d65aa807a1613782ba02;hb=ca2f99575937b183618e425a73b45bcc277b5541;hpb=29521f9a232f039318fd8525c410b3127836626f diff --git a/device.h b/device.h index b069a2b..e13e435 100644 --- a/device.h +++ b/device.h @@ -241,7 +241,8 @@ void device_set_default_ps(bool state); void device_init_virtual(struct device *dev, const struct device_type *type, const char *name); int device_init(struct device *iface, const struct device_type *type, const char *ifname); -void device_cleanup(struct device *iface); +void device_cleanup(struct device *dev); +struct device *device_find(const char *name); struct device *device_get(const char *name, int create); void device_add_user(struct device_user *dep, struct device *iface); void device_remove_user(struct device_user *dep);