diff src/lib-index/mail-transaction-log.h @ 2762:a1c7e92c1839 HEAD

New way of handling extension introductions in transaction log.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 Oct 2004 21:24:21 +0300
parents d41c42a7bf1e
children 512dd7d76cdc
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.h	Sun Oct 17 19:42:20 2004 +0300
+++ b/src/lib-index/mail-transaction-log.h	Sun Oct 17 21:24:21 2004 +0300
@@ -69,7 +69,9 @@
 };
 
 struct mail_transaction_ext_intro {
-	uint32_t ext_id; /* must be first */
+	/* old extension: set ext_id. don't set name.
+	   new extension: ext_id = (uint32_t)-1. give name. */
+	uint32_t ext_id;
 	uint32_t hdr_size;
 	uint16_t record_size;
 	uint16_t record_align;
@@ -78,17 +80,13 @@
 	/* unsigned char name[]; */
 };
 
+/* these are set for the last ext_intro */
 struct mail_transaction_ext_hdr_update {
-	uint32_t ext_id; /* must be first */
 	uint16_t offset;
 	uint16_t size;
 	/* unsigned char data[]; */
 };
 
-struct mail_transaction_ext_rec_header {
-	uint32_t ext_id; /* must be first */
-};
-
 struct mail_transaction_ext_rec_update {
 	uint32_t uid;
 	/* unsigned char data[]; */