X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.c;h=3b3e2e306a88511d972c09c414b7dfc6b01c6f60;hp=2cbe9ec513ec2e5d5f0b1cc285ae965d0ba57ae7;hb=b45b4104d5d3db94254328cb0ed128d22835aa15;hpb=0f63c8af256fc5b7ba1c5e3ee1572d2e6f27a566 diff --git a/interface.c b/interface.c index 2cbe9ec..3b3e2e3 100644 --- a/interface.c +++ b/interface.c @@ -203,14 +203,14 @@ void interface_set_proto_state(struct interface *iface, struct interface_proto_s } struct interface * -alloc_interface(const char *name, struct uci_section *s, struct blob_attr *attr) +interface_alloc(const char *name, struct uci_section *s, struct blob_attr *attr) { struct interface *iface; struct blob_attr *tb[IFACE_ATTR_MAX]; struct blob_attr *cur; struct device *dev; - iface = get_interface(name); + iface = interface_get(name); if (iface) return iface; @@ -245,7 +245,7 @@ alloc_interface(const char *name, struct uci_section *s, struct blob_attr *attr) } void -free_interface(struct interface *iface) +interface_free(struct interface *iface) { netifd_ubus_remove_interface(iface); list_del(&iface->list); @@ -255,7 +255,7 @@ free_interface(struct interface *iface) } struct interface * -get_interface(const char *name) +interface_get(const char *name) { struct interface *iface; @@ -321,7 +321,7 @@ interface_set_down(struct interface *iface) } void -start_pending_interfaces(void) +interface_start_pending(void) { struct interface *iface;