CtdlCheckExpress() now accepts a session context.
[citadel.git] / citadel / server / citserver.h
index 27eae38e6d0cab8ef41862a7224c914199b810e2..be4f3b75c76a3d6f620d6710dc1aa7d58727f503 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) 1987-2023 by the citadel.org team
+// Copyright (c) 1987-2024 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
@@ -7,7 +7,7 @@
 #include "context.h"
 #include "ctdl_module.h"
 
-/* Simple linked list structures ... used in a bunch of different places. */
+// Simple linked list structures ... used in a bunch of different places.
 typedef struct RoomProcList RoomProcList;
 struct RoomProcList {
         struct RoomProcList *next;
@@ -26,7 +26,7 @@ struct UserProcList {
 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
 
 void master_startup (void);
-int master_cleanup (int exitcode);
+void master_cleanup (int exitcode);
 void set_wtmpsupp (char *newtext);
 void set_wtmpsupp_to_current_room(void);
 void do_command_loop(void);
@@ -35,7 +35,9 @@ void begin_session(struct CitContext *con);
 void citproto_begin_session(void);
 void citproto_begin_admin_session(void);
 void help_subst (char *strbuf, char *source, char *dest);
-char CtdlCheckExpress(void);
+char CtdlCheckExpress(struct CitContext *con);
+int CheckIfAlreadySeen(StrBuf *guid);
+void ctdl_lockfile(int);
 
 extern int panic_fd;
 extern time_t server_startup_time;