aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-04-04 02:18:31 +0800
committerDan Winship <danw@src.gnome.org>2002-04-04 02:18:31 +0800
commitdf281e27199559d0166142ef78c01d7a38d60964 (patch)
treebcc2c33128259bc537e3611ac82aca2f28c513a4 /camel/providers/imap
parente9a1f5121d164292990f5cec0ef73efd4ddf0ed5 (diff)
downloadgsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar.gz
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar.bz2
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar.lz
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar.xz
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.tar.zst
gsoc2013-evolution-df281e27199559d0166142ef78c01d7a38d60964.zip
make service_cache be an array of CAMEL_NUM_PROVIDER_TYPES elements so you
* camel-provider.h (CamelProvider): make service_cache be an array of CAMEL_NUM_PROVIDER_TYPES elements so you can have a single provider offer both stores and transports. (Eg, Exchange, NNTP) * providers/imap/camel-imap-provider.c: Don't initialize service_cache here. (The session code can do it itself since the url_hash and url_equal functions are stored as part of the provider.) * providers/nntp/camel-nntp-provider.c: Likewise. * providers/local/camel-local-provider.c: Likewise. * providers/pop3/camel-pop3-provider.c: Likewise. * providers/sendmail/camel-sendmail-provider.c: Likewise. * providers/smtp/camel-smtp-provider.c: Likewise. * camel-session.c (register_provider): Initialize the provider's service cache(s) here. (camel_session_class_init): Don't initialize. vee_provider.service_cache here. (camel_session_destroy_provider): Update to destroy multiple service_caches. (service_cache_remove, get_service): Tweak these a bit to deal with multiple service_caches. svn path=/trunk/; revision=16330
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-provider.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-provider.c b/camel/providers/imap/camel-imap-provider.c
index 35b27f20f4..305dbab443 100644
--- a/camel/providers/imap/camel-imap-provider.c
+++ b/camel/providers/imap/camel-imap-provider.c
@@ -91,7 +91,6 @@ camel_provider_module_init (CamelSession *session)
{
imap_provider.object_types[CAMEL_PROVIDER_STORE] =
camel_imap_store_get_type ();
- imap_provider.service_cache = g_hash_table_new (imap_url_hash, imap_url_equal);
imap_provider.url_hash = imap_url_hash;
imap_provider.url_equal = imap_url_equal;
imap_provider.authtypes = g_list_concat (camel_remote_store_authtype_list (),