Back to index

citadel  8.12
citserver.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1987-2012 by the citadel.org team
00003  *
00004  *  This program is open source software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License version 3.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  */
00012 
00013 #include "serv_extensions.h"
00014 #include "context.h"
00015 
00016 /* Simple linked list structures ... used in a bunch of different places. */
00017 typedef struct RoomProcList RoomProcList;
00018 struct RoomProcList {
00019         struct RoomProcList *next;
00020         char name[ROOMNAMELEN];
00021         char lcname[ROOMNAMELEN];
00022        long namelen;
00023        long key;
00024        long QRNum;
00025 };
00026 struct UserProcList {
00027        struct UserProcList *next;
00028        char user[64];
00029 };
00030 
00031 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
00032 
00033 void cit_backtrace(void);
00034 void cit_oneline_backtrace(void);
00035 void cit_panic_backtrace(int SigNum);
00036 void master_startup (void);
00037 void master_cleanup (int exitcode);
00038 void set_wtmpsupp (char *newtext);
00039 void set_wtmpsupp_to_current_room(void);
00040 void do_command_loop(void);
00041 void do_async_loop(void);
00042 void begin_session(struct CitContext *con);
00043 void citproto_begin_session(void);
00044 void citproto_begin_admin_session(void);
00045 void GenerateRoomDisplay(char *real_room,
00046                         CitContext *viewed,
00047                         CitContext *viewer);
00048 extern int panic_fd;
00049 char CtdlCheckExpress(void);
00050 extern time_t server_startup_time;
00051 extern int openid_level_supported;