summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eom-debug.c10
-rw-r--r--src/eom-debug.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/src/eom-debug.c b/src/eom-debug.c
index 7ac4f74..0523909 100644
--- a/src/eom-debug.c
+++ b/src/eom-debug.c
@@ -40,7 +40,7 @@ static GTimer *timer = NULL;
static gdouble last = 0.0;
#endif
-static EomDebugSection debug = EOM_NO_DEBUG;
+static EomDebug debug = EOM_DEBUG_NO_DEBUG;
void
eom_debug_init (void)
@@ -48,7 +48,7 @@ eom_debug_init (void)
if (g_getenv ("EOM_DEBUG") != NULL)
{
/* Enable all debugging */
- debug = ~EOM_NO_DEBUG;
+ debug = ~EOM_DEBUG_NO_DEBUG;
goto out;
}
@@ -91,14 +91,14 @@ eom_debug_init (void)
out:
#ifdef ENABLE_PROFILING
- if (debug != EOM_NO_DEBUG)
+ if (debug != EOM_DEBUG_NO_DEBUG)
timer = g_timer_new ();
#endif
return;
}
void
-eom_debug_message (EomDebugSection section,
+eom_debug_message (EomDebug section,
const gchar *file,
gint line,
const gchar *function,
@@ -136,7 +136,7 @@ eom_debug_message (EomDebugSection section,
}
}
-void eom_debug (EomDebugSection section,
+void eom_debug (EomDebug section,
const gchar *file,
gint line,
const gchar *function)
diff --git a/src/eom-debug.h b/src/eom-debug.h
index ebb068a..2252d57 100644
--- a/src/eom-debug.h
+++ b/src/eom-debug.h
@@ -31,7 +31,7 @@
#include <glib.h>
typedef enum {
- EOM_NO_DEBUG = 0,
+ EOM_DEBUG_NO_DEBUG = 0,
EOM_DEBUG_WINDOW = 1 << 0,
EOM_DEBUG_VIEW = 1 << 1,
EOM_DEBUG_JOBS = 1 << 2,
@@ -44,7 +44,7 @@ typedef enum {
EOM_DEBUG_PRINTING = 1 << 9,
EOM_DEBUG_LCMS = 1 << 10,
EOM_DEBUG_PLUGINS = 1 << 11
-} EomDebugSection;
+} EomDebug;
#define DEBUG_WINDOW EOM_DEBUG_WINDOW, __FILE__, __LINE__, G_STRFUNC
#define DEBUG_VIEW EOM_DEBUG_VIEW, __FILE__, __LINE__, G_STRFUNC
@@ -61,12 +61,12 @@ typedef enum {
void eom_debug_init (void);
-void eom_debug (EomDebugSection section,
+void eom_debug (EomDebug section,
const gchar *file,
gint line,
const gchar *function);
-void eom_debug_message (EomDebugSection section,
+void eom_debug_message (EomDebug section,
const gchar *file,
gint line,
const gchar *function,