X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.h;h=1f852abe6c46a70ac6262b04e12bef2aa707ac8f;hp=8cedfbae642827b1ff5f650c34cb4dfddb8e4034;hb=cf90523881521fe8396a728230169b6b8ea7e8da;hpb=bc1902d31fe5d751a50981d668cc1356b4796639 diff --git a/device.h b/device.h index 8cedfba..1f852ab 100644 --- a/device.h +++ b/device.h @@ -75,6 +75,8 @@ enum device_event { DEV_EVENT_LINK_UP, DEV_EVENT_LINK_DOWN, + + __DEV_EVENT_MAX }; /* @@ -87,6 +89,8 @@ struct device_user { bool hotplug; bool alias; + uint8_t ev_idx[__DEV_EVENT_MAX]; + struct device *dev; void (*cb)(struct device_user *, enum device_event); };