2 * transsip - the telephony toolkit
3 * By Daniel Borkmann <daniel@transsip.org>
4 * Copyright 2011, 2012 Daniel Borkmann <dborkma@tik.ee.ethz.ch>
5 * Subject to the GPL, version 2.
16 #define BLOCK_SUCC_DONE 0
17 #define BLOCK_STOP_CHAIN 1
29 int (*hook
)(const struct event_block
*self
, unsigned long event
,
31 struct event_block
*next
;
35 struct event_block
*head
;
36 struct mutexlock lock
;
39 static inline void init_event_head(struct event_head
*head
)
42 mutexlock_init(&head
->lock
);
45 extern int register_event_hook(struct event_block
**head
,
46 struct event_block
*block
);
47 extern int register_event_hook_once(struct event_block
**head
,
48 struct event_block
*block
);
49 extern int unregister_event_hook(struct event_block
**head
,
50 struct event_block
*block
);
51 extern int call_event_hooks(struct event_block
**head
, unsigned long event
,
52 const void *arg
, int *called
);
54 #endif /* NOTIFIER_H */