]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
* Added supplementary message info records for info that may change
[citadel.git] / citadel / server.h
index 5516181e1dd487a8fdffa5ef8a3fc815910c2a72..add73474afd142e17e43023d7426e6b7849c5da8 100644 (file)
@@ -140,6 +140,7 @@ enum {
        S_HOUSEKEEPING,
        S_DATABASE,
        S_NETDB,
+       S_SUPPMSGMAIN,
        MAX_SEMAPHORES
 };
 
@@ -260,6 +261,17 @@ struct visit {
 #define UA_ZAPPED              16
 
 
+/* Supplementary data for a message on disk
+ * (These are kept separately from the message itself because they are
+ * fields whose values may change at some point after the message is saved.)
+ */
+struct SuppMsgInfo {
+       long smi_msgnum;        /* Redundant, but useful for self-check */
+       int smi_refcount;       /* Number of rooms which point to this msg */
+       /* more stuff will be added to this record in the future */
+};
+
+
 
 /* Built-in debuggable stuff for checking for memory leaks */
 #ifdef DEBUG_MEMORY_LEAKS