Changed the BIGMSGS semantics.
[citadel.git] / citadel / server / msgbase.h
index 356e0ff9c9a30d932552a00c86e0bdab670aa7cb..80033bc6badd657eccc6725b7547188ca03a27f3 100644 (file)
@@ -122,8 +122,9 @@ int  CM_IsValidMsg     (struct CtdlMessage *msg);
 
 // Serialization routines use this struct to return a pointer and a length
 struct ser_ret {
-       size_t len;
-       unsigned char *ser;
+       size_t len;                     // length of allocation
+       unsigned char *ser;             // pointer to allocation
+       unsigned char *msgstart;        // pointer to the "M" (message text) field
 };
 
 struct ser_ret CtdlSerializeMessage(struct CtdlMessage *);
@@ -133,7 +134,6 @@ int CtdlSaveMsgPointersInRoom(char *roomname, long newmsgidlist[], int num_newms
                              int do_repl_check, struct CtdlMessage *supplied_msg, int suppress_refcount_adj
 );
 int CtdlSaveMsgPointerInRoom(char *roomname, long msgid, int do_repl_check, struct CtdlMessage *msg);
-long CtdlSaveThisMessage(struct CtdlMessage *msg, long msgid, int Reply);
 char *CtdlReadMessageBody(char *terminator, long tlen, size_t maxlen, StrBuf *exist, int crlf);
 StrBuf *CtdlReadMessageBodyBuf(
                char *terminator,       // token signalling EOT