X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=device.h;h=d9b90120e5a9b9dc602601bfff8703e2036b7fd3;hb=cd8b6676df948be45586b606cb32538b81e43f40;hp=dd2b5edf35abc4e759530ed02894fee473980827;hpb=8c7ee052813ae68490b230c657a4a36700654ce5;p=project%2Fnetifd.git diff --git a/device.h b/device.h index dd2b5ed..d9b9012 100644 --- a/device.h +++ b/device.h @@ -130,13 +130,13 @@ 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); -struct device *get_device(const char *name, bool create); +int device_init(struct device *iface, const struct device_type *type, const char *ifname); +void device_cleanup(struct device *iface); +struct device *device_get(const char *name, bool create); void device_add_user(struct device_user *dep, struct device *iface); void device_remove_user(struct device_user *dep); -void set_device_present(struct device *dev, bool state); +void device_set_present(struct device *dev, bool state); int claim_device(struct device *dev); void release_device(struct device *dev); int check_device_state(struct device *dev);