From 64dcaa003ccd4cb780914c3ee0cabd793cf6daf1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 3 Aug 2000 20:40:19 +0000 Subject: Initialize the service_cache for the news/nntp providers 2000-08-03 Jeffrey Stedfast * providers/nntp/camel-nntp-provider.c (camel_provider_module_init): Initialize the service_cache for the news/nntp providers svn path=/trunk/; revision=4514 --- camel/ChangeLog | 5 +++++ camel/providers/nntp/camel-nntp-provider.c | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 0a2d75df5e..197b167c39 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-08-03 Jeffrey Stedfast + + * providers/nntp/camel-nntp-provider.c (camel_provider_module_init): + Initialize the service_cache for the news/nntp providers + 2000-08-03 Peter Williams * providers/nntp/Makefile.am (INCLUDES): Add -I$(top_srcdir) to diff --git a/camel/providers/nntp/camel-nntp-provider.c b/camel/providers/nntp/camel-nntp-provider.c index 4afc8c7c97..abfce31c5e 100644 --- a/camel/providers/nntp/camel-nntp-provider.c +++ b/camel/providers/nntp/camel-nntp-provider.c @@ -38,7 +38,9 @@ static CamelProvider news_provider = { CAMEL_PROVIDER_IS_REMOTE, - { 0, 0 } + { 0, 0 }, + + NULL }; static CamelProvider nntp_provider = { @@ -52,7 +54,9 @@ static CamelProvider nntp_provider = { CAMEL_PROVIDER_IS_REMOTE, - { 0, 0 } + { 0, 0 }, + + NULL }; void @@ -64,10 +68,10 @@ camel_provider_module_init (CamelSession *session) nntp_provider.object_types[CAMEL_PROVIDER_TRANSPORT] = camel_nntp_transport_get_type(); #endif - + + news_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal); + nntp_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal); + camel_session_register_provider (session, &news_provider); camel_session_register_provider (session, &nntp_provider); } - - - -- cgit v1.2.3