1 /*****
2  *       Xnee's Not an Event Emulator
3  *
4  * Xnee enables recording and replaying of X protocol data
5  *
6  *        Copyright (C) 1999, 2000, 2001, 2002, 2003 Henrik Sandklef
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 3
11  * of the License, or any later version.
12  *
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Boston,
22  * MA  02110-1301, USA.
23  ****/
24 
25 #ifndef  XNEE_PRINT_VARARGS_H
26 #define  XNEE_PRINT_VARARGS_H
27 
28 
29 #include "libxnee/xnee.h"
30 
31 /**
32  * Verbose prints to specified file
33  *
34  * @param xd     xnee's main structure
35  * @param str    formatted string
36  * @param ....   extra parameters to string
37  * @return void
38  */
39 void
40 xnee_verbosef (xnee_data* xd, /*@null@*/ char * str,  ...)  __attribute__ ((format ( printf, 2 , 3))) ;
41 
42 #ifdef HAVE_STDARG_H
43 void
44 xnee_print_error (char * error, ...) __attribute__ (( format (printf, 1, 2)));
45 #else
46 void
47 xnee_print_error (char * error, ...)  __attribute__ (( format (printf, 1, 2)));
48 #endif /* HAVE_STDARG_H */
49 
50 
51 
52 #ifdef NO_VERBOSE
53 #define xnee_verbose(a)
54 #else
55 #define xnee_verbose(a) xnee_verbosef a
56 #endif /* NO_VERBOSE */
57 
58 
59 
60 #endif /*  XNEE_PRINT_VARARGS_H */
61