aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/cal-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/cal-factory.c')
-rw-r--r--calendar/pcs/cal-factory.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/calendar/pcs/cal-factory.c b/calendar/pcs/cal-factory.c
index 41e14bb759..1df133ea90 100644
--- a/calendar/pcs/cal-factory.c
+++ b/calendar/pcs/cal-factory.c
@@ -794,3 +794,27 @@ cal_factory_get_n_backends (CalFactory *factory)
priv = factory->priv;
return g_hash_table_size (priv->backends);
}
+
+/* Frees a uri/backend pair from the backends hash table */
+static void
+dump_backend (gpointer key, gpointer value, gpointer data)
+{
+ char *uri;
+ CalBackend *backend;
+
+ uri = key;
+ backend = value;
+
+ g_message (" %s: %p", uri, backend);
+}
+
+void
+cal_factory_dump_active_backends (CalFactory *factory)
+{
+ CalFactoryPrivate *priv;
+
+ g_message ("Active PCS backends");
+
+ priv = factory->priv;
+ g_hash_table_foreach (priv->backends, dump_backend, NULL);
+}