libmpd
11.8.17
debug_printf.h
Go to the documentation of this file.
1
/* libmpd (high level libmpdclient library)
2
* Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
3
* Project homepage: http://gmpcwiki.sarine.nl/
4
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
#ifndef __DEBUG_PRINTF_H__
21
#define __DEBUG_PRINTF_H__
22
26
29
typedef
enum
_DebugLevel
{
31
DEBUG_NO_OUTPUT
= 0,
33
DEBUG_ERROR
= 1,
35
DEBUG_WARNING
= 2,
37
DEBUG_INFO
= 3
38
}
DebugLevel
;
39
45
void
debug_set_level
(
DebugLevel
dl);
46
48
void
debug_printf_real
(
DebugLevel
dp,
const
char
*file,
const
int
line,
const
char
*function,
const
char
*format,...);
49
55
#define debug_printf(dp, format, ARGS...) debug_printf_real(dp,__FILE__,__LINE__,__FUNCTION__,format,##ARGS)
56
63
void
debug_set_output
(FILE *fp);
65
#endif
DebugLevel
enum _DebugLevel DebugLevel
debug_set_output
void debug_set_output(FILE *fp)
debug_printf_real
void debug_printf_real(DebugLevel dp, const char *file, const int line, const char *function, const char *format,...)
_DebugLevel
_DebugLevel
Definition
debug_printf.h:29
DEBUG_ERROR
@ DEBUG_ERROR
Definition
debug_printf.h:33
DEBUG_INFO
@ DEBUG_INFO
Definition
debug_printf.h:37
DEBUG_WARNING
@ DEBUG_WARNING
Definition
debug_printf.h:35
DEBUG_NO_OUTPUT
@ DEBUG_NO_OUTPUT
Definition
debug_printf.h:31
debug_set_level
void debug_set_level(DebugLevel dl)
Copyright 2006
Qball Cow