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
39
46
48void 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
63void debug_set_output(FILE *fp);
65#endif
enum _DebugLevel DebugLevel
void debug_set_output(FILE *fp)
void debug_printf_real(DebugLevel dp, const char *file, const int line, const char *function, const char *format,...)
_DebugLevel
@ DEBUG_ERROR
@ DEBUG_INFO
@ DEBUG_WARNING
@ DEBUG_NO_OUTPUT
void debug_set_level(DebugLevel dl)

Copyright 2006 Qball Cow