diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-09-11 15:05:21 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-09-11 15:05:21 +0000 |
commit | 05d90f4f20c1fbbb6c532b5f62531c97ced7d63e (patch) | |
tree | 6cca68f46fc8a6f758ae66a45a9656fbfda94418 /dbus/dbus-internals.h | |
parent | eed8a8a7bd11f1d070b441675f4c498dd07a78c2 (diff) |
* dbus/dbus-internal.c: Add dbus_is_verbose so we can have more
complex debugging code
* dbus/dbus-marshal-basic.c (_dbus_marshal_read_fixed_multi): Move
between the test suite ifdefs
(_dbus_verbose_bytes): return if verbosity is not enabled
Diffstat (limited to 'dbus/dbus-internals.h')
-rw-r--r-- | dbus/dbus-internals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 9deee993..0c8d956c 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -80,9 +80,11 @@ void _dbus_warn (const char *format, void _dbus_verbose_real (const char *format, ...) _DBUS_GNUC_PRINTF (1, 2); void _dbus_verbose_reset_real (void); +dbus_bool_t _dbus_is_verbose_real (void); # define _dbus_verbose _dbus_verbose_real # define _dbus_verbose_reset _dbus_verbose_reset_real +# define _dbus_is_verbose _dbus_is_verbose_real #else # ifdef HAVE_ISO_VARARGS # define _dbus_verbose(...) @@ -92,6 +94,7 @@ void _dbus_verbose_reset_real (void); # error "This compiler does not support varargs macros and thus verbose mode can't be disabled meaningfully" # endif # define _dbus_verbose_reset() +# define _dbus_is_verbose() FALSE #endif /* !DBUS_ENABLE_VERBOSE_MODE */ const char* _dbus_strerror (int error_number); |