diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-07 11:38:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-13 01:58:59 +0800 |
commit | a06e4484b8df804124b5bcf88d94dec5acfba270 (patch) | |
tree | 4fa42793d7dc461f2b3767296d76592182c48222 /mail/e-mail-local.h | |
parent | 5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff) | |
download | gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip |
Give MailSession a permanent home.
Global variables in shared libraries are a bad idea. EMailBackend now
owns the MailSession instance, which is actually now EMailSession.
Move the blocking utility functions in mail-tools.c to e-mail-session.c
and add asynchronous variants. Same approach as Camel.
Replace EMailReader.get_shell_backend() with EMailReader.get_backend(),
which returns an EMailBackend. Easier access to the EMailSession.
Diffstat (limited to 'mail/e-mail-local.h')
-rw-r--r-- | mail/e-mail-local.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/e-mail-local.h b/mail/e-mail-local.h index b5b7e8ab8c..125c6451af 100644 --- a/mail/e-mail-local.h +++ b/mail/e-mail-local.h @@ -24,6 +24,7 @@ #include <glib.h> #include <camel/camel.h> +#include <mail/e-mail-session.h> G_BEGIN_DECLS @@ -40,7 +41,8 @@ typedef enum { E_MAIL_NUM_LOCAL_FOLDERS } EMailLocalFolder; -void e_mail_local_init (const gchar *data_dir); +void e_mail_local_init (EMailSession *session, + const gchar *data_dir); CamelFolder * e_mail_local_get_folder (EMailLocalFolder type); const gchar * e_mail_local_get_folder_uri (EMailLocalFolder type); CamelStore * e_mail_local_get_store (void); |