[Telepathy-commits] [telepathy-mission-control/master] Implement mcd_debug_set_level

Alberto Mardegan alberto.mardegan at nokia.com
Thu Feb 26 00:07:56 PST 2009


Users of the library will be able to change teh debug level at runtime.
---
 src/mcd-debug.c |    6 ++++++
 src/mcd-debug.h |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mcd-debug.c b/src/mcd-debug.c
index c3c4482..055515c 100644
--- a/src/mcd-debug.c
+++ b/src/mcd-debug.c
@@ -125,3 +125,9 @@ inline gint mcd_debug_get_level ()
     return mc_debug;
 }
 
+void
+mcd_debug_set_level (gint level)
+{
+    mc_debug = level;
+}
+
diff --git a/src/mcd-debug.h b/src/mcd-debug.h
index 85e5e7b..93f217e 100644
--- a/src/mcd-debug.h
+++ b/src/mcd-debug.h
@@ -52,6 +52,7 @@ G_BEGIN_DECLS
 
 void mcd_debug_init (void);
 
+void mcd_debug_set_level (gint level);
 inline gint mcd_debug_get_level (void);
 
 gpointer mcd_debug_ref (gpointer obj, const gchar *filename, gint linenum);
-- 
1.5.6.5




More information about the telepathy-commits mailing list