X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.h;h=4d53c83b2e37fd4b657b5e9aaa25bdaf78fb6836;hp=9a9b211fb9f8098a047eb0c87f4d9b54b396c6b7;hb=ef6ded206fcebd9852df1f649139afd05db60985;hpb=b9f116ece5ca85c38105a8e33f0d9cc818a05694 diff --git a/interface.h b/interface.h index 9a9b211..4d53c83 100644 --- a/interface.h +++ b/interface.h @@ -8,8 +8,8 @@ struct interface; struct interface_proto_state; enum interface_event { - IFEV_UP, IFEV_DOWN, + IFEV_UP, }; enum interface_state { @@ -38,6 +38,8 @@ struct interface_error { */ struct interface { struct vlist_node node; + struct list_head hotplug_list; + enum interface_event hotplug_ev; char name[IFNAMSIZ]; const char *ifname; @@ -91,6 +93,9 @@ void interface_remove_link(struct interface *iface, struct device *llif); void interface_add_error(struct interface *iface, const char *subsystem, const char *code, const char **data, int n_data); +void interface_queue_event(struct interface *iface, enum interface_event ev); +void interface_dequeue_event(struct interface *iface); + void interface_start_pending(void); #endif