aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-19 15:27:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-19 15:27:49 +0800
commit05e0ef6fea2f2feec010109142c8305c69e64c57 (patch)
treef01a116128a1e73d5971bf1ba1bfc711e292aaf4 /camel/providers/local
parent8b86c88624f926a7122ab4dd39ebd26d0e839ab2 (diff)
downloadgsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar.gz
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar.bz2
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar.lz
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar.xz
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.tar.zst
gsoc2013-evolution-05e0ef6fea2f2feec010109142c8305c69e64c57.zip
Fixes for api changes.
2004-02-19 Not Zed <NotZed@Ximian.com> * providers/*/camel-*-provider.c (camel_provider_module_init): Fixes for api changes. * camel-provider.c (camel_provider_load): no longer take session argument. the providers are global resources. (camel_provider_init): dont return anything anymore. (error?) call from camel_init now. Use a recursive lock too. * camel-session.c (camel_session_register_provider) (camel_session_list_providers, camel_session_get_provider): Moved to camel-provider, camel_provider_register/list/get. (vee_provider): moved to camel-provider.c svn path=/trunk/; revision=24794
Diffstat (limited to 'camel/providers/local')
-rw-r--r--camel/providers/local/camel-local-provider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/providers/local/camel-local-provider.c b/camel/providers/local/camel-local-provider.c
index fc33f34f58..27fae76695 100644
--- a/camel/providers/local/camel-local-provider.c
+++ b/camel/providers/local/camel-local-provider.c
@@ -189,7 +189,7 @@ local_url_equal(const void *v, const void *v2)
&& u1->port == u2->port;
}
-void camel_provider_module_init(CamelSession * session)
+void camel_provider_module_init(void)
{
char *path;
static int init = 0;
@@ -202,7 +202,7 @@ void camel_provider_module_init(CamelSession * session)
mh_provider.object_types[CAMEL_PROVIDER_STORE] = camel_mh_store_get_type ();
mh_provider.url_hash = local_url_hash;
mh_provider.url_equal = local_url_equal;
- camel_session_register_provider(session, &mh_provider);
+ camel_provider_register(&mh_provider);
if (!(path = getenv ("MAIL")))
path = g_strdup_printf (SYSTEM_MAIL_DIR "/%s", g_get_user_name ());
@@ -210,18 +210,18 @@ void camel_provider_module_init(CamelSession * session)
mbox_provider.object_types[CAMEL_PROVIDER_STORE] = camel_mbox_store_get_type ();
mbox_provider.url_hash = local_url_hash;
mbox_provider.url_equal = local_url_equal;
- camel_session_register_provider(session, &mbox_provider);
+ camel_provider_register(&mbox_provider);
spool_conf_entries[0].value = path; /* default path - same as mbox */
spool_provider.object_types[CAMEL_PROVIDER_STORE] = camel_spool_store_get_type ();
spool_provider.url_hash = local_url_hash;
spool_provider.url_equal = local_url_equal;
- camel_session_register_provider(session, &spool_provider);
+ camel_provider_register(&spool_provider);
- path = getenv ("MAILDIR");
+ path = getenv("MAILDIR");
maildir_conf_entries[0].value = path ? path : ""; /* default path */
maildir_provider.object_types[CAMEL_PROVIDER_STORE] = camel_maildir_store_get_type ();
maildir_provider.url_hash = local_url_hash;
maildir_provider.url_equal = local_url_equal;
- camel_session_register_provider(session, &maildir_provider);
+ camel_provider_register(&maildir_provider);
}