[telepathy-mission-control/master] McdConnection: debug-log the channels from GetAll(Requests)
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri May 15 10:19:28 PDT 2009
---
src/mcd-connection.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 54712c7..59f898b 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1312,6 +1312,24 @@ static void get_all_requests_cb (TpProxy *proxy, GHashTable *properties,
object_path = g_value_get_boxed (va->values);
channel_props = g_value_get_boxed (va->values + 1);
+ if (DEBUGGING)
+ {
+ GHashTableIter iter;
+ gpointer k, v;
+
+ DEBUG ("%s", object_path);
+
+ g_hash_table_iter_init (&iter, channel_props);
+
+ while (g_hash_table_iter_next (&iter, &k, &v))
+ {
+ gchar *repr = g_strdup_value_contents (v);
+
+ DEBUG(" \"%s\" => %s", (const gchar *) k, repr);
+ g_free (repr);
+ }
+ }
+
mcd_connection_found_channel (connection, object_path, channel_props);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list