Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/eventhandler.h
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | enum evhdev_detach { | ||||
EVHDEV_DETACH_COMPLETE, /* After detach() returns 0 */ | EVHDEV_DETACH_COMPLETE, /* After detach() returns 0 */ | ||||
EVHDEV_DETACH_FAILED /* After detach() returns err */ | EVHDEV_DETACH_FAILED /* After detach() returns err */ | ||||
}; | }; | ||||
typedef void (*device_attach_fn)(void *, device_t); | typedef void (*device_attach_fn)(void *, device_t); | ||||
typedef void (*device_detach_fn)(void *, device_t, enum evhdev_detach); | typedef void (*device_detach_fn)(void *, device_t, enum evhdev_detach); | ||||
EVENTHANDLER_DECLARE(device_attach, device_attach_fn); | EVENTHANDLER_DECLARE(device_attach, device_attach_fn); | ||||
EVENTHANDLER_DECLARE(device_detach, device_detach_fn); | EVENTHANDLER_DECLARE(device_detach, device_detach_fn); | ||||
/* Interface address addition and removal event */ | |||||
struct ifaddr; | |||||
typedef void (*rt_addrmsg_fn)(void *, struct ifaddr *, int); | |||||
EVENTHANDLER_DECLARE(rt_addrmsg, rt_addrmsg_fn); | |||||
#endif /* _SYS_EVENTHANDLER_H_ */ | #endif /* _SYS_EVENTHANDLER_H_ */ |