diff options
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c index 590d5e15bd..204e08b5f2 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -260,4 +260,16 @@ _get_default_folder (CamelStore *store, CamelException *ex) } +CamelSession * +camel_store_get_session (CamelStore *store, CamelException *ex) +{ + if (!store) { + camel_exception_set (ex, + CAMEL_EXCEPTION_STORE_NULL, + "Store is NULL"); + return NULL; + } + + return store->session; +} |