2
* libdpkg - Debian packaging suite library routines
3
* debug.h - debugging support
5
* Copyright © 2011 Guillem Jover <guillem@debian.orgian>
7
* This is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef LIBDPKG_DEBUG_H
22
#define LIBDPKG_DEBUG_H
24
#include <dpkg/macros.h>
35
dbg_eachfiledetail = 0100,
37
dbg_conffdetail = 0200,
39
dbg_depcondetail = 0400,
40
dbg_veryverbose = 01000,
41
dbg_stupidlyverbose = 02000,
42
dbg_triggers = 010000,
43
dbg_triggersdetail = 020000,
44
dbg_triggersstupid = 040000,
47
void debug_set_output(FILE *output);
48
void debug_set_mask(int mask);
49
bool debug_has_flag(int flag);
50
void debug(int flag, const char *fmt, ...) DPKG_ATTR_PRINTF(2);
54
#endif /* LIBDPKG_DEBUG_H */