From 14a6c9ccd6088184e27a239e7b6a091b0c232e6e Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 25 Jul 2014 17:04:41 +0200 Subject: Rename EogDebugSection to EogDebug Also rename EOG_NO_DEBUG to EOG_DEBUG_NO_DEBUG for clarity in bindings. Based on eog commit 5f66a42b0f445b181b4612474af43b7304104684 From Claudio Saavedra --- src/eom-debug.c | 10 +++++----- src/eom-debug.h | 8 ++++---- 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 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, -- cgit v1.2.1