aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-10-30 06:40:16 +0800
committerChris Toshok <toshok@src.gnome.org>2001-10-30 06:40:16 +0800
commit9420ec95745a249279df14edcecf316f61ee0a54 (patch)
tree1c148260985678530f1f6554f31563294bbaa619 /addressbook/backend
parent9892741e7efd81b7e99201530c9c5e8a56081094 (diff)
downloadgsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar.gz
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar.bz2
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar.lz
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar.xz
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.tar.zst
gsoc2013-evolution-9420ec95745a249279df14edcecf316f61ee0a54.zip
add prototype for pas_book_factory_dump_active_backends.
2001-10-29 Chris Toshok <toshok@ximian.com> * backend/pas/pas-book-factory.h: add prototype for pas_book_factory_dump_active_backends. * backend/pas/pas-book-factory.c (pas_book_factory_dump_active_backends): new function. (dump_active_server_map_entry): new function. svn path=/trunk/; revision=14371
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-book-factory.c23
-rw-r--r--addressbook/backend/pas/pas-book-factory.h2
2 files changed, 25 insertions, 0 deletions
diff --git a/addressbook/backend/pas/pas-book-factory.c b/addressbook/backend/pas/pas-book-factory.c
index cb7b291a9e..6d4bcd8eb1 100644
--- a/addressbook/backend/pas/pas-book-factory.c
+++ b/addressbook/backend/pas/pas-book-factory.c
@@ -114,6 +114,29 @@ pas_book_factory_get_n_backends (PASBookFactory *factory)
return g_hash_table_size (factory->priv->active_server_map);
}
+static void
+dump_active_server_map_entry (gpointer key, gpointer value, gpointer data)
+{
+ char *uri;
+ PASBackend *backend;
+
+ uri = key;
+ backend = PAS_BACKEND (value);
+
+ g_message (" %s: %p", uri, backend);
+}
+
+void
+pas_book_factory_dump_active_backends (PASBookFactory *factory)
+{
+ g_message ("Active PAS backends");
+
+ g_hash_table_foreach (factory->priv->active_server_map,
+ dump_active_server_map_entry,
+ NULL);
+
+}
+
/* Callback used when a backend loses its last connected client */
static void
backend_last_client_gone_cb (PASBackend *backend, gpointer data)
diff --git a/addressbook/backend/pas/pas-book-factory.h b/addressbook/backend/pas/pas-book-factory.h
index 22d4a87b3e..1936701296 100644
--- a/addressbook/backend/pas/pas-book-factory.h
+++ b/addressbook/backend/pas/pas-book-factory.h
@@ -35,6 +35,8 @@ void pas_book_factory_register_backend (PASBookFactory
int pas_book_factory_get_n_backends (PASBookFactory *factory);
+void pas_book_factory_dump_active_backends (PASBookFactory *factory);
+
gboolean pas_book_factory_activate (PASBookFactory *factory, const char *iid);
GtkType pas_book_factory_get_type (void);