Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/eventhandler.h
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | |||||
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 */ | /* Interface address addition and removal event */ | ||||
struct ifaddr; | struct ifaddr; | ||||
typedef void (*rt_addrmsg_fn)(void *, struct ifaddr *, int); | typedef void (*rt_addrmsg_fn)(void *, struct ifaddr *, int); | ||||
EVENTHANDLER_DECLARE(rt_addrmsg, rt_addrmsg_fn); | EVENTHANDLER_DECLARE(rt_addrmsg, rt_addrmsg_fn); | ||||
/* | |||||
* Static eventhandler support. | |||||
*/ | |||||
void static_eventhandler_init(struct static_eventhandler *seh); | |||||
void static_eventhandler_register(struct static_eventhandler *seh, void *func, | |||||
enum static_eventhandler_prio prio); | |||||
void static_eventhandler_deregister(struct static_eventhandler *seh, void *func); | |||||
void static_eventhandler_invoke(struct static_eventhandler *seh, void *arg); | |||||
#endif /* _SYS_EVENTHANDLER_H_ */ | #endif /* _SYS_EVENTHANDLER_H_ */ |