]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/citserver.h
CtdlCheckExpress() now accepts a session context.
[citadel.git] / citadel / server / citserver.h
index dec95966d9896927c593d2cb78fe03e34fe7a0cd..be4f3b75c76a3d6f620d6710dc1aa7d58727f503 100644 (file)
@@ -1,18 +1,13 @@
-// Copyright (c) 1987-2019 by the citadel.org team
+// Copyright (c) 1987-2024 by the citadel.org team
 //
-// This program is open source software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// This program is open source software.  Use, duplication, or disclosure
+// is subject to the terms of the GNU General Public License, version 3.
 
 #include "serv_extensions.h"
 #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;
@@ -31,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);
@@ -40,8 +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;
-extern int openid_level_supported;