aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-04 04:40:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-04 04:40:19 +0800
commit64dcaa003ccd4cb780914c3ee0cabd793cf6daf1 (patch)
treecad03a6473d1d9966b7ddd0823fbe36c7fa352be /camel
parent162c4d69f3f37c363a0e85bbe98f8691dfac510b (diff)
downloadgsoc2013-evolution-64dcaa003ccd4cb780914c3ee0cabd793cf6daf1.tar.gz
gsoc2013-evolution-64dcaa003ccd4cb780914c3ee0cabd793cf6daf1.tar.zst
gsoc2013-evolution-64dcaa003ccd4cb780914c3ee0cabd793cf6daf1.zip
Initialize the service_cache for the news/nntp providers
2000-08-03 Jeffrey Stedfast <fejj@helixcode.com> * providers/nntp/camel-nntp-provider.c (camel_provider_module_init): Initialize the service_cache for the news/nntp providers svn path=/trunk/; revision=4514
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/nntp/camel-nntp-provider.c16
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 <fejj@helixcode.com>
+
+ * providers/nntp/camel-nntp-provider.c (camel_provider_module_init):
+ Initialize the service_cache for the news/nntp providers
+
2000-08-03 Peter Williams <peterw@helixcode.com>
* 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);
}
-
-
-