diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-17 00:27:12 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-17 01:10:02 +0800 |
commit | 968ea42023e5e0daf860a7246533311a67f77e05 (patch) | |
tree | b68bd7c80b48c09e332b45c9e3b4ed98fd68efd9 /mail/mail-session.c | |
parent | 3a0a795a167ed33eaa6a9a73b0edeb854aef6f0f (diff) | |
download | gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.gz gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.bz2 gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.lz gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.xz gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.zst gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.zip |
Kill em_utils_get_data/config_dir(), push down to MailSession
This pushes the get_data_dir() API down to the right level. At present, it is
still implemented by querying the shell backend for the data dir / config dir.
But this should eventually be reversed (when mail is split off to EDS) so that
the mail daemon is the one responsible for the storage locations and the shell
backend queries the daemon for these values.
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index b7b26bf8dc..e9ad274839 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -834,3 +834,20 @@ mail_session_set_junk_headers (const gchar **name, const gchar **value, gint len camel_session_set_junk_headers (session, name, value, len); } + +const gchar * +mail_session_get_data_dir (void) +{ + g_return_val_if_fail (session_shell_backend, NULL); + + return e_shell_backend_get_data_dir (session_shell_backend); +} + +const gchar * +mail_session_get_config_dir (void) +{ + g_return_val_if_fail (session_shell_backend, NULL); + + return e_shell_backend_get_config_dir (session_shell_backend); +} + |