summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-02-04 04:26:37 +0100
committerGuillem Jover <guillem@debian.org>2011-02-11 06:59:16 +0100
commit5e7235bf69f016a1ade715c4a6be3a40d2cde4b5 (patch)
treec953fd0c2710ada948a79c92db19f6f9d6be1d7d /src/main.h
parent469c5fa91e12fdded4e4c6f7131a965e889d5b18 (diff)
downloaddpkg-5e7235bf69f016a1ade715c4a6be3a40d2cde4b5.tar.gz
Move and generalize debug API from dpkg to libdpkg
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/main.h b/src/main.h
index 1316ba10b..463ad990a 100644
--- a/src/main.h
+++ b/src/main.h
@@ -21,6 +21,7 @@
#ifndef MAIN_H
#define MAIN_H
+#include <dpkg/debug.h>
#include <dpkg/pkg-list.h>
/* These two are defined in filesdb.h. */
@@ -124,7 +125,6 @@ extern const char *const statusstrings[];
extern int f_pending, f_recursive, f_alsoselect, f_skipsame, f_noact;
extern int f_autodeconf, f_nodebsig;
extern int f_triggers;
-extern unsigned long f_debug;
extern int fc_downgrade, fc_configureany, fc_hold, fc_removereinstreq, fc_overwrite;
extern int fc_removeessential, fc_conflicts, fc_depends, fc_dependsversion;
extern int fc_breaks, fc_badpath, fc_overwritediverted, fc_architecture;
@@ -253,23 +253,6 @@ void clear_istobes(void);
bool isdirectoryinuse(struct filenamenode *namenode, struct pkginfo *pkg);
bool hasdirectoryconffiles(struct filenamenode *namenode, struct pkginfo *pkg);
-enum debugflags {
- dbg_general= 00001,
- dbg_scripts= 00002,
- dbg_eachfile= 00010,
- dbg_eachfiledetail= 00100,
- dbg_conff= 00020,
- dbg_conffdetail= 00200,
- dbg_depcon= 00040,
- dbg_depcondetail= 00400,
- dbg_veryverbose= 01000,
- dbg_stupidlyverbose= 02000,
- dbg_triggers = 010000,
- dbg_triggersdetail = 020000,
- dbg_triggersstupid = 040000,
-};
-
-void debug(int which, const char *fmt, ...) DPKG_ATTR_PRINTF(2);
void log_action(const char *action, struct pkginfo *pkg);
/* from trigproc.c */