dovecot-2.2: lib-storage: Make struct fail_storage/mailbox/mail_...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 8 11:12:24 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/d7a66090b7c7
changeset: 17352:d7a66090b7c7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 08 14:11:46 2014 +0300
description:
lib-storage: Make struct fail_storage/mailbox/mail_vfuncs properly extern.
These could be useful when implementing some new dummy storage backends.

diffstat:

 src/lib-storage/fail-mail-storage.c |  2 --
 src/lib-storage/fail-mail-storage.h |  4 ++++
 src/lib-storage/fail-mail.c         |  2 --
 3 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 7f6c5e27b908 -r d7a66090b7c7 src/lib-storage/fail-mail-storage.c
--- a/src/lib-storage/fail-mail-storage.c	Tue May 06 18:10:55 2014 +0300
+++ b/src/lib-storage/fail-mail-storage.c	Thu May 08 14:11:46 2014 +0300
@@ -5,8 +5,6 @@
 #include "mail-storage-private.h"
 #include "fail-mail-storage.h"
 
-extern struct mail_storage fail_storage;
-
 static struct mail_storage *fail_storage_alloc(void)
 {
 	struct mail_storage *storage;
diff -r 7f6c5e27b908 -r d7a66090b7c7 src/lib-storage/fail-mail-storage.h
--- a/src/lib-storage/fail-mail-storage.h	Tue May 06 18:10:55 2014 +0300
+++ b/src/lib-storage/fail-mail-storage.h	Thu May 08 14:11:46 2014 +0300
@@ -1,6 +1,10 @@
 #ifndef FAIL_MAIL_STORAGE_H
 #define FAIL_MAIL_STORAGE_H
 
+extern struct mail_storage fail_storage;
+extern struct mailbox fail_mailbox;
+extern struct mail_vfuncs fail_mail_vfuncs;
+
 struct mail_storage *fail_mail_storage_create(void);
 
 struct mailbox *
diff -r 7f6c5e27b908 -r d7a66090b7c7 src/lib-storage/fail-mail.c
--- a/src/lib-storage/fail-mail.c	Tue May 06 18:10:55 2014 +0300
+++ b/src/lib-storage/fail-mail.c	Thu May 08 14:11:46 2014 +0300
@@ -5,8 +5,6 @@
 #include "mail-storage-private.h"
 #include "fail-mail-storage.h"
 
-extern struct mail_vfuncs fail_mail_vfuncs;
-
 struct mail *
 fail_mailbox_mail_alloc(struct mailbox_transaction_context *t,
 			enum mail_fetch_field wanted_fields ATTR_UNUSED,


More information about the dovecot-cvs mailing list