]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Added mail_storage_get_user().
authorTimo Sirainen <tss@iki.fi>
Sun, 7 Feb 2010 17:51:51 +0000 (19:51 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 7 Feb 2010 17:51:51 +0000 (19:51 +0200)
--HG--
branch : HEAD

src/lib-storage/mail-storage.c
src/lib-storage/mail-storage.h

index 52c79c1f3f9a5f476a3bd1fe1446b6eeaa167fd9..e73c851523712a0659d6a972bbf97420e35307a2 100644 (file)
@@ -396,6 +396,11 @@ mail_storage_get_settings(struct mail_storage *storage)
        return storage->set;
 }
 
+struct mail_user *mail_storage_get_user(struct mail_storage *storage)
+{
+       return storage->user;
+}
+
 void mail_storage_set_callbacks(struct mail_storage *storage,
                                struct mail_storage_callbacks *callbacks,
                                void *context)
index 251ec28c1191c9d0e04173e246c1b9ac7cc2cf48..c9ad7999a9d685c27c0f0e7f049ebc7fe460b4e9 100644 (file)
@@ -301,6 +301,7 @@ void mail_storage_unref(struct mail_storage **storage);
 /* Returns the mail storage settings. */
 const struct mail_storage_settings *
 mail_storage_get_settings(struct mail_storage *storage) ATTR_PURE;
+struct mail_user *mail_storage_get_user(struct mail_storage *storage) ATTR_PURE;
 
 /* Set storage callback functions to use. */
 void mail_storage_set_callbacks(struct mail_storage *storage,