997775bd2a50c4381c889b66e9ec7351aed2ea74
[citadel.git] / citadel / citserver.h
1 /*
2  * Copyright (c) 1987-2015 by the citadel.org team
3  *
4  * This program is open source software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  */
12
13 #include "serv_extensions.h"
14 #include "context.h"
15 #include "ctdl_module.h"
16
17 /* Simple linked list structures ... used in a bunch of different places. */
18 typedef struct RoomProcList RoomProcList;
19 struct RoomProcList {
20         struct RoomProcList *next;
21         OneRoomNetCfg *OneRNCfg;
22         char name[ROOMNAMELEN];
23         char lcname[ROOMNAMELEN];
24         long namelen;
25         long lastsent;
26         long key;
27         long QRNum;
28 };
29 struct UserProcList {
30         struct UserProcList *next;
31         char user[64];
32 };
33
34 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
35
36 void cit_backtrace(void);
37 void cit_oneline_backtrace(void);
38 void cit_panic_backtrace(int SigNum);
39 void master_startup (void);
40 void master_cleanup (int exitcode);
41 void set_wtmpsupp (char *newtext);
42 void set_wtmpsupp_to_current_room(void);
43 void do_command_loop(void);
44 void do_async_loop(void);
45 void begin_session(struct CitContext *con);
46 void citproto_begin_session(void);
47 void citproto_begin_admin_session(void);
48
49 void help_subst (char *strbuf, char *source, char *dest);
50
51 extern int panic_fd;
52 char CtdlCheckExpress(void);
53 int CtdlIsPublicClient(void);
54 extern time_t server_startup_time;
55 extern int openid_level_supported;