]> code.citadel.org Git - citadel.git/blobdiff - citadel/include/ctdl_module.h
Added code to provide a preliminary single user mode.
[citadel.git] / citadel / include / ctdl_module.h
index e554783f58cad5d5e208babd2d244223f098c60e..754b2e146eab08670361a379e4a3767b33ac53d3 100644 (file)
@@ -147,7 +147,21 @@ void CtdlThreadAllocTSD(void);
  * You must free the returned pointer when done.
  */
 struct CitContext *CtdlGetContextArray (int *count);
+void CtdlFillSystemContext(struct CitContext *context, char *name);
 
+int CtdlTrySingleUser(void);
+void CtdlEndSingleUser(void);
+int CtdlWantSingleUser(void);
+int CtdlIsSingleUser(void);
 
 
+/*
+ * CtdlGetCurrentMessageNumber()  -  Obtain the current highest message number in the system
+ * This provides a quick way to initialise a variable that might be used to indicate
+ * messages that should not be processed. EG. a new Sieve script will use this
+ * to record determine that messages older than this should not be processed.
+ * This function is defined in control.c
+ */
+long CtdlGetCurrentMessageNumber(void);
+
 #endif /* CTDL_MODULE_H */