]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
Changes to dynloader et al to handle ICQ module being written
[citadel.git] / citadel / server.h
index 0c954bb4b6551d63063ecbb7ca9b6fbdb3ecee31..b815334423d3a7fe75d5932189b1f308f9206758 100644 (file)
@@ -4,7 +4,7 @@ typedef pthread_t THREAD;
 /* Uncomment this if you want to track memory leaks.
  * This incurs some overhead, so don't use it unless you're debugging the code!
  */
-/* #define DEBUG_MEMORY_LEAKS */
+#define DEBUG_MEMORY_LEAKS
 
 
 /*
@@ -140,6 +140,7 @@ enum {
        S_HOUSEKEEPING,
        S_DATABASE,
        S_NETDB,
+       S_SUPPMSGMAIN,
        MAX_SEMAPHORES
 };
 
@@ -223,6 +224,7 @@ extern struct SessionFunctionHook *SessionHookTable;
 #define EVT_NEWROOM    3       /* Changing rooms */
 #define EVT_LOGOUT     4       /* A user is logging out */
 #define EVT_SETPASS    5       /* Setting or changing password */
+#define EVT_CMD                6       /* Called after each server command */
 
 
 /*
@@ -260,6 +262,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