diff options
author | Dan Winship <danw@src.gnome.org> | 2000-09-08 03:59:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-09-08 03:59:53 +0800 |
commit | 1fb4f1bfee3badccac9419a6115aefa34ab8f6b1 (patch) | |
tree | 64235cf31c16ccdfffc3abfa52589707dfd08b14 /camel/camel-session.h | |
parent | cb05e36a627060826f332cb3b35129e9af765923 (diff) | |
download | gsoc2013-evolution-1fb4f1bfee3badccac9419a6115aefa34ab8f6b1.tar.gz gsoc2013-evolution-1fb4f1bfee3badccac9419a6115aefa34ab8f6b1.tar.zst gsoc2013-evolution-1fb4f1bfee3badccac9419a6115aefa34ab8f6b1.zip |
Make this take a path to a directory that Camel can use for its own
* camel-session.c (camel_session_new): Make this take a path to a
directory that Camel can use for its own nefarious purposes.
(camel_session_get_storage_path): New function to return a path
that a service can use for its own nefarious sub-purposes.
* camel-service.c (camel_service_get_path): New method (and
useful default implementation) to get a (relative) pathname
corresponding to the service.
svn path=/trunk/; revision=5239
Diffstat (limited to 'camel/camel-session.h')
-rw-r--r-- | camel/camel-session.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/camel/camel-session.h b/camel/camel-session.h index 7cb2306e4c..fed21be6f1 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -61,6 +61,7 @@ struct _CamelSession { CamelObject parent_object; + char *storage_path; CamelAuthCallback authenticator; CamelTimeoutRegisterCallback registrar; CamelTimeoutRemoveCallback remover; @@ -80,12 +81,11 @@ typedef struct { CamelType camel_session_get_type (void); -CamelSession * camel_session_new (CamelAuthCallback - authenticator, - CamelTimeoutRegisterCallback - registrar, - CamelTimeoutRemoveCallback - remover); +CamelSession * camel_session_new (const char *storage_path, + CamelAuthCallback authenticator, + CamelTimeoutRegisterCallback registrar, + CamelTimeoutRemoveCallback remover); + void camel_session_register_provider (CamelSession *session, CamelProvider *provider); GList * camel_session_list_providers (CamelSession *session, @@ -105,6 +105,9 @@ CamelService * camel_session_get_service_connected (CamelSession *session, #define camel_session_get_transport(session, url_string, ex) \ ((CamelTransport *) camel_session_get_service_connected (session, url_string, CAMEL_PROVIDER_TRANSPORT, ex)) +char * camel_session_get_storage_path (CamelSession *session, + CamelService *service, + CamelException *ex); char * camel_session_query_authenticator (CamelSession *session, CamelAuthCallbackMode mode, |