mailmap: add mail alias
[transsip.git] / src / call_notifier.h
blobafc4e08ed5512a5a984f6c19340f9060f0466c16
1 /*
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.
6 */
8 #ifndef CHAINS_H
9 #define CHAINS_H
11 #include "notifier.h"
13 #define CALL_STATE_MACHINE_CHANGED 1
15 # define CALL_STATE_MACHINE_IDLE 0
16 # define CALL_STATE_MACHINE_CALLOUT 1
17 # define CALL_STATE_MACHINE_CALLIN 2
18 # define CALL_STATE_MACHINE_SPEAKING 3
20 extern void init_call_notifier(void);
21 extern int register_call_notifier(struct event_block *block);
22 extern int register_call_notifier_once(struct event_block *block);
23 extern int unregister_call_notifier(struct event_block *block);
24 extern int call_notifier_exec(unsigned long event, const void *arg);
26 #endif /* CHAINS_H */