diff options
author | Chris Toshok <toshok@ximian.com> | 2001-10-30 06:57:24 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-10-30 06:57:24 +0800 |
commit | e546049fbd4df62ae684b7e4110923052c536f7d (patch) | |
tree | bd12e86ab82bc43b05fe93df0e5e47c88bb51c58 | |
parent | 2e21780aad5361453f388000d84caa11bd9b9488 (diff) | |
download | gsoc2013-evolution-e546049fbd4df62ae684b7e4110923052c536f7d.tar.gz gsoc2013-evolution-e546049fbd4df62ae684b7e4110923052c536f7d.tar.zst gsoc2013-evolution-e546049fbd4df62ae684b7e4110923052c536f7d.zip |
new function. (dump_backend): new function.
2001-10-29 Chris Toshok <toshok@ximian.com>
* pcs/cal-factory.c (cal_factory_dump_active_backends): new
function.
(dump_backend): new function.
* pcs/cal-factory.h: add prototype for
cal_factory_dump_active_backends.
svn path=/trunk/; revision=14374
-rw-r--r-- | calendar/ChangeLog | 9 | ||||
-rw-r--r-- | calendar/pcs/cal-factory.c | 24 | ||||
-rw-r--r-- | calendar/pcs/cal-factory.h | 1 |
3 files changed, 34 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 06f853b056..d0ff9c88f0 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2001-10-29 Chris Toshok <toshok@ximian.com> + + * pcs/cal-factory.c (cal_factory_dump_active_backends): new + function. + (dump_backend): new function. + + * pcs/cal-factory.h: add prototype for + cal_factory_dump_active_backends. + 2001-10-29 Federico Mena Quintero <federico@ximian.com> Fix bug #12163. 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); +} diff --git a/calendar/pcs/cal-factory.h b/calendar/pcs/cal-factory.h index bb9ac01630..46a66ed9a0 100644 --- a/calendar/pcs/cal-factory.h +++ b/calendar/pcs/cal-factory.h @@ -66,6 +66,7 @@ void cal_factory_register_method (CalFactory *factory, const char *method, GtkType backend_type); int cal_factory_get_n_backends (CalFactory *factory); +void cal_factory_dump_active_backends (CalFactory *factory); END_GNOME_DECLS |