The little LEDs on the NanoPi blink when there is activity.
[citadel.git] / citadel / server / citserver.h
1 // Copyright (c) 1987-2023 by the citadel.org team
2 //
3 // This program is open source software.  Use, duplication, or disclosure
4 // is subject to the terms of the GNU General Public License, version 3.
5
6 #include "serv_extensions.h"
7 #include "context.h"
8 #include "ctdl_module.h"
9
10 // Simple linked list structures ... used in a bunch of different places.
11 typedef struct RoomProcList RoomProcList;
12 struct RoomProcList {
13         struct RoomProcList *next;
14         char name[ROOMNAMELEN];
15         char lcname[ROOMNAMELEN];
16         long namelen;
17         long lastsent;
18         long key;
19         long QRNum;
20 };
21 struct UserProcList {
22         struct UserProcList *next;
23         char user[USERNAME_SIZE];
24 };
25
26 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
27
28 void master_startup (void);
29 void master_cleanup (int exitcode);
30 void set_wtmpsupp (char *newtext);
31 void set_wtmpsupp_to_current_room(void);
32 void do_command_loop(void);
33 void do_async_loop(void);
34 void begin_session(struct CitContext *con);
35 void citproto_begin_session(void);
36 void citproto_begin_admin_session(void);
37 void help_subst (char *strbuf, char *source, char *dest);
38 char CtdlCheckExpress(void);
39 int CheckIfAlreadySeen(StrBuf *guid);
40 void ctdl_lockfile(int);
41
42 extern int panic_fd;
43 extern time_t server_startup_time;