X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.h;h=733763f753f82619423059df8de95e7e9363cd5f;hp=decbc74addbb0471f232f489474763ddffd93ead;hb=d3f710f9c3b70b310fae6cdcceb201767b913d7d;hpb=170304603e7d905e98301c703ad2ec107b9a774c diff --git a/device.h b/device.h index decbc74..733763f 100644 --- a/device.h +++ b/device.h @@ -119,12 +119,6 @@ struct device_hotplug_ops { int (*del)(struct device *main, struct device *member); }; -static inline void -device_free(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); @@ -138,9 +132,15 @@ void device_remove_user(struct device_user *dep); void device_set_present(struct device *dev, bool state); int device_claim(struct device *dev); -void release_device(struct device *dev); +void device_release(struct device *dev); int check_device_state(struct device *dev); +static inline void +device_free(struct device *dev) +{ + dev->type->free(dev); +} + void device_free_all(void); struct device *get_vlan_device_chain(const char *ifname, bool create);