diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 15:39:23 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-17 15:39:23 +0200 |
commit | 7bdac909466263335c13daa824b17ca3d6f75ef6 (patch) | |
tree | 7ad23781d103929be66b3b73faefab00a470657b /inc | |
parent | bb586580bee93c67f2b7b40c99d0a38ea02593c4 (diff) | |
download | abrt-7bdac909466263335c13daa824b17ca3d6f75ef6.tar.gz abrt-7bdac909466263335c13daa824b17ca3d6f75ef6.tar.xz abrt-7bdac909466263335c13daa824b17ca3d6f75ef6.zip |
factored out dbus init from CommLayerServerDBus.cpp to lib/Utils/abrt_dbus.cpp
this will allow me to reuse this code for applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/abrtlib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 1affdf91..c99f4b7e 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -83,6 +83,17 @@ extern void verror_msg(const char *s, va_list p, const char *strerr); #undef log #define log(...) error_msg(__VA_ARGS__) +/* Verbosity level */ +extern int g_verbose; +/* VERB1 log("what you sometimes want to see, even on a production box") */ +#define VERB1 if (g_verbose >= 1) +/* VERB2 log("debug message, not going into insanely small details") */ +#define VERB2 if (g_verbose >= 2) +/* VERB3 log("lots and lots of details") */ +#define VERB3 if (g_verbose >= 3) +/* there is no level > 3 */ + + void* xmalloc(size_t size); void* xrealloc(void *ptr, size_t size); void* xzalloc(size_t size); |