summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-02-01 15:47:18 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-02-06 13:26:17 +0000
commit33b31b5d6be1b46b3e8d28e3f38b15f94ae1401f (patch)
tree203a73a75a393751976a6d2ee6dbea96512cf86a
parent2beb6fe89dac878b1a786033bf452d10b3f8ad56 (diff)
Always define WockyDebugFlags and wocky_debug_set_flags()
If wocky-debug.h is to contain API for applications, that API should probably always be defined.
-rw-r--r--wocky/wocky-debug.c6
-rw-r--r--wocky/wocky-debug.h8
2 files changed, 6 insertions, 8 deletions
diff --git a/wocky/wocky-debug.c b/wocky/wocky-debug.c
index 4d833aa..0af0a32 100644
--- a/wocky/wocky-debug.c
+++ b/wocky/wocky-debug.c
@@ -133,5 +133,11 @@ wocky_debug_stanza (WockyDebugFlags flag,
wocky_debug_node_tree_va (flag, (WockyNodeTree *) stanza, format, args);
va_end (args);
}
+#else /* !ENABLE_DEBUG */
+
+void
+wocky_debug_set_flags (WockyDebugFlags flags)
+{
+}
#endif
diff --git a/wocky/wocky-debug.h b/wocky/wocky-debug.h
index 19a8f75..f032b92 100644
--- a/wocky/wocky-debug.h
+++ b/wocky/wocky-debug.h
@@ -5,12 +5,8 @@
#ifndef __WOCKY_DEBUG_H__
#define __WOCKY_DEBUG_H__
-#include "config.h"
-
G_BEGIN_DECLS
-#ifdef ENABLE_DEBUG
-
typedef enum
{
/*< private > */
@@ -41,10 +37,6 @@ typedef enum
void wocky_debug_set_flags (WockyDebugFlags flags);
-#else /* ENABLE_DEBUG */
-
-#endif /* ENABLE_DEBUG */
-
G_END_DECLS
#endif