docs: fix urls in SubmittingPatches
[transsip-mirror.git] / src / call-notifier.h
blob09a351abc97666261a07a7e279d947c17100a1c2
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 * Swiss federal institute of technology (ETH Zurich)
6 * Subject to the GPL, version 2.
7 */
9 #ifndef CHAINS_H
10 #define CHAINS_H
12 #include "notifier.h"
14 #define CALL_STATE_MACHINE_CHANGED 1
16 # define CALL_STATE_MACHINE_IDLE 0
17 # define CALL_STATE_MACHINE_CALLOUT 1
18 # define CALL_STATE_MACHINE_CALLIN 2
19 # define CALL_STATE_MACHINE_SPEAKING 3
21 extern void init_call_notifier(void);
22 extern int register_call_notifier(struct event_block *block);
23 extern int register_call_notifier_once(struct event_block *block);
24 extern int unregister_call_notifier(struct event_block *block);
25 extern int call_notifier_exec(unsigned long event, const void *arg);
27 #endif