nettoyage du repertoire debian/
[asterisk-app-conference.git] / common.h
1
2 // $Id: common.h 880 2007-04-25 15:23:59Z jpgrayson $
3
4 /*
5 * app_conference
6 *
7 * A channel independent conference application for Asterisk
8 *
9 * Copyright (C) 2002, 2003 Junghanns.NET GmbH
10 * Copyright (C) 2003, 2004 HorizonLive.com, Inc.
11 * Copyright (C) 2005, 2006 HorizonWimba, Inc.
12 * Copyright (C) 2007 Wimba, Inc.
13 *
14 * Klaus-Peter Junghanns <kapejod@ns1.jnetdns.de>
15 *
16 * Video Conferencing support added by
17 * Neil Stratford <neils@vipadia.com>
18 * Copyright (C) 2005, 2005 Vipadia Limited
19 *
20 * VAD driven video conferencing, text message support
21 * and miscellaneous enhancements added by
22 * Mihai Balea <mihai at hates dot ms>
23 *
24 * This program may be modified and distributed under the
25 * terms of the GNU General Public License. You should have received
26 * a copy of the GNU General Public License along with this
27 * program; if not, write to the Free Software Foundation, Inc.
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 */
30
31 #ifndef _APP_CONF_COMMON_H
32 #define _APP_CONF_COMMON_H
33
34 #include <asterisk/time.h>
35
36 // typedef includes
37 #include "conf_frame.h"
38
39 // function includesee
40 //#include "member.h"
41 #include "conference.h"
42 #include "frame.h"
43 #include "cli.h"
44
45 /* Utility functions */
46
47 /* LOG the time taken to execute a function (like lock acquisition */
48 #if 1
49 #define TIMELOG(func,min,message) \
50 do { \
51 struct timeval t1, t2; \
52 int diff; \
53 t1 = ast_tvnow(); \
54 func; \
55 t2 = ast_tvnow(); \
56 if ( (diff = ast_tvdiff_ms(t2, t1)) > min ) \
57 ast_log( AST_CONF_DEBUG, "TimeLog: %s: %d ms\n", message, diff); \
58 } while (0)
59 #else
60 #define TIMELOG(func,min,message) func
61 #endif
62
63 #endif