[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.15,1.16 mail-storage.h,1.51,1.52

cras at procontrol.fi cras at procontrol.fi
Sat Jul 26 20:55:13 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv13066/lib-storage

Modified Files:
	mail-storage.c mail-storage.h 
Log Message:
API changes: Don't keep variables in mailbox class.



Index: mail-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mail-storage.c	10 Apr 2003 22:37:25 -0000	1.15
+++ mail-storage.c	26 Jul 2003 16:55:11 -0000	1.16
@@ -256,8 +256,3 @@
 		*syntax = storage->syntax_error;
 	return storage->error;
 }
-
-int mail_storage_is_inconsistency_error(struct mailbox *box)
-{
-	return box->inconsistent;
-}

Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- mail-storage.h	26 Jul 2003 16:33:22 -0000	1.51
+++ mail-storage.h	26 Jul 2003 16:55:11 -0000	1.52
@@ -229,6 +229,12 @@
 
 	struct mail_storage *storage;
 
+	/* Returns TRUE if mailbox is read-only. */
+	int (*is_readonly)(struct mailbox *box);
+
+	/* Returns TRUE if mailbox supports adding custom flags. */
+	int (*allow_new_custom_flags)(struct mailbox *box);
+
 	/* Close the box. Returns FALSE if some cleanup errors occured, but
 	   the mailbox was closed anyway. */
 	int (*close)(struct mailbox *box);
@@ -342,12 +348,6 @@
 	   connection this would mean a forced disconnection since we can't
 	   do forced CLOSE. */
 	int (*is_inconsistency_error)(struct mailbox *box);
-
-/* public: */
-	unsigned int readonly:1;
-	unsigned int allow_custom_flags:1;
-/* private: */
-	unsigned int inconsistent:1;
 };
 
 struct mail {
@@ -508,6 +508,5 @@
 
 const char *mail_storage_get_last_error(struct mail_storage *storage,
 					int *syntax);
-int mail_storage_is_inconsistency_error(struct mailbox *box);
 
 #endif



More information about the dovecot-cvs mailing list