telepathy-glib: Add TLS debug flag

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Wed May 9 03:15:55 PDT 2012


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

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Dec 14 15:30:10 2010 +0000

Add TLS debug flag

---

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

diff --git a/telepathy-glib/debug-internal.h b/telepathy-glib/debug-internal.h
index cea13da..4f8c0fe 100644
--- a/telepathy-glib/debug-internal.h
+++ b/telepathy-glib/debug-internal.h
@@ -35,7 +35,8 @@ typedef enum
   TP_DEBUG_ROOM_CONFIG   = 1 << 17,
   TP_DEBUG_CALL          = 1 << 18,
   /* Quis custodiet ipsos custodes? */
-  TP_DEBUG_DEBUGGER      = 1 << 19
+  TP_DEBUG_DEBUGGER      = 1 << 19,
+  TP_DEBUG_TLS           = 1 << 20
 } TpDebugFlags;
 
 gboolean _tp_debug_flag_is_set (TpDebugFlags flag);
diff --git a/telepathy-glib/debug.c b/telepathy-glib/debug.c
index ccaef18..b6a89e2 100644
--- a/telepathy-glib/debug.c
+++ b/telepathy-glib/debug.c
@@ -54,6 +54,8 @@
  * <listitem><literal>contact-lists</literal> - the #TpBaseContactList
  *    (service)</listitem>
  * <listitem><literal>debugger</literal> - #TpDebugClient objects</listitem>
+ * <listitem><literal>tls</literal> - #TpTLSCertificate objects
+ *     (client)</listitem>
  * <listitem><literal>all</literal> - all of the above</listitem>
  * </itemizedlist>
  */
@@ -117,6 +119,7 @@ static GDebugKey keys[] = {
   { "room-config",   TP_DEBUG_ROOM_CONFIG },
   { "call",          TP_DEBUG_CALL },
   { "debugger",      TP_DEBUG_DEBUGGER },
+  { "tls",           TP_DEBUG_TLS },
   { 0, }
 };
 
@@ -151,6 +154,7 @@ static DebugKeyToDomain key_to_domain[] = {
   { TP_DEBUG_SASL,       G_LOG_DOMAIN "/sasl" },
   { TP_DEBUG_ROOM_CONFIG, G_LOG_DOMAIN "/room-config" },
   { TP_DEBUG_DEBUGGER,   G_LOG_DOMAIN "/debugger" },
+  { TP_DEBUG_TLS,        G_LOG_DOMAIN "/tls" },
   { 0, NULL }
 };
 



More information about the telepathy-commits mailing list