sendcommand now uses the admin socket, eliminating any need to touch the config file.
[citadel.git] / citadel / citserver.h
1 /*
2  * Copyright (c) 1987-2012 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
16 /* Simple linked list structures ... used in a bunch of different places. */
17 struct RoomProcList {
18         struct RoomProcList *next;
19         char name[ROOMNAMELEN];
20 };
21 struct UserProcList {
22         struct UserProcList *next;
23         char user[64];
24 };
25
26 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
27
28 void cit_backtrace(void);
29 void cit_oneline_backtrace(void);
30 void cit_panic_backtrace(int SigNum);
31 void master_startup (void);
32 void master_cleanup (int exitcode);
33 void set_wtmpsupp (char *newtext);
34 void set_wtmpsupp_to_current_room(void);
35 void do_command_loop(void);
36 void do_async_loop(void);
37 void begin_session(struct CitContext *con);
38 void citproto_begin_session(void);
39 void citproto_begin_admin_session(void);
40 void GenerateRoomDisplay(char *real_room,
41                         CitContext *viewed,
42                         CitContext *viewer);
43 extern int panic_fd;
44 char CtdlCheckExpress(void);
45 extern time_t server_startup_time;
46 extern int openid_level_supported;