telepathy-glib: Add a debug key for client-side debug stuff

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Wed Apr 18 00:08:55 PDT 2012


Module: telepathy-glib
Branch: master
Commit: 5affea2190000acb8443e16c128eac1d52d85f3c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=5affea2190000acb8443e16c128eac1d52d85f3c

Author: Will Thompson <will.thompson at collabora.co.uk>
Date:   Fri Nov 26 23:53:28 2010 +0000

Add a debug key for client-side debug stuff

---

 telepathy-glib/debug-internal.h |    4 +++-
 telepathy-glib/debug.c          |    3 +++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/telepathy-glib/debug-internal.h b/telepathy-glib/debug-internal.h
index 5569aeb..9ceb912 100644
--- a/telepathy-glib/debug-internal.h
+++ b/telepathy-glib/debug-internal.h
@@ -31,7 +31,9 @@ typedef enum
   TP_DEBUG_CONTACT_LISTS = 1 << 15,
   TP_DEBUG_SASL          = 1 << 16,
   TP_DEBUG_ROOM_CONFIG   = 1 << 17,
-  TP_DEBUG_CALL          = 1 << 18
+  TP_DEBUG_CALL          = 1 << 18,
+  /* Quis custodiet ipsos custodes? */
+  TP_DEBUG_DEBUGGER      = 1 << 19
 } TpDebugFlags;
 
 gboolean _tp_debug_flag_is_set (TpDebugFlags flag);
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index bcdd466..83b8226 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -53,6 +53,7 @@
  *     #TpAccount objects (client)</listitem>
  * <listitem><literal>contact-lists</literal> - the #TpBaseContactList
  *    (service)</listitem>
+ * <listitem><literal>debugger</literal> - #TpDebugClient objects<listitem>
  * <listitem><literal>all</literal> - all of the above</listitem>
  * </itemizedlist>
  */
@@ -115,6 +116,7 @@ static GDebugKey keys[] = {
   { "sasl",          TP_DEBUG_SASL },
   { "room-config",   TP_DEBUG_ROOM_CONFIG },
   { "call",          TP_DEBUG_CALL },
+  { "debugger",      TP_DEBUG_DEBUGGER },
   { 0, }
 };
 
@@ -148,6 +150,7 @@ static DebugKeyToDomain key_to_domain[] = {
   { TP_DEBUG_CONTACT_LISTS, G_LOG_DOMAIN "/contact-lists" },
   { TP_DEBUG_SASL,       G_LOG_DOMAIN "/sasl" },
   { TP_DEBUG_ROOM_CONFIG, G_LOG_DOMAIN "/room-config" },
+  { TP_DEBUG_DEBUGGER,   G_LOG_DOMAIN "/debugger" },
   { 0, NULL }
 };
 



More information about the telepathy-commits mailing list