cdb_init_backends() just calls bdb_init_backend() for now
[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 cdb_init_backends(void);
29 void master_startup (void);
30 int master_cleanup (int exitcode);
31 void set_wtmpsupp (char *newtext);
32 void set_wtmpsupp_to_current_room(void);
33 void do_command_loop(void);
34 void do_async_loop(void);
35 void begin_session(struct CitContext *con);
36 void citproto_begin_session(void);
37 void citproto_begin_admin_session(void);
38 void help_subst (char *strbuf, char *source, char *dest);
39 char CtdlCheckExpress(void);
40 int CheckIfAlreadySeen(StrBuf *guid);
41
42 extern int panic_fd;
43 extern time_t server_startup_time;