X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.h;h=1235a81d865ef40fbd01fb755816ab844b2737f6;hb=e94bdae14683fd1581f905365fe6eb3b94e90d21;hp=0b70e0b683ebc19a306d1f440d35a2b7c95c66bc;hpb=ae822088bca5cce3d6c3ef7f6d312a6d5de7a77c;p=citadel.git diff --git a/citadel/citserver.h b/citadel/citserver.h index 0b70e0b68..1235a81d8 100644 --- a/citadel/citserver.h +++ b/citadel/citserver.h @@ -1,2 +1,46 @@ -void master_cleanup(void); -void cleanup_stuff(void *); +/* + * Copyright (c) 1987-2012 by the citadel.org team + * + * This program is open source software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "serv_extensions.h" +#include "context.h" + +/* Simple linked list structures ... used in a bunch of different places. */ +struct RoomProcList { + struct RoomProcList *next; + char name[ROOMNAMELEN]; +}; +struct UserProcList { + struct UserProcList *next; + char user[64]; +}; + +#define CTDLUSERIP (IsEmptyStr(CC->cs_addr) ? CC->cs_clientinfo: CC->cs_addr) + +void cit_backtrace(void); +void cit_oneline_backtrace(void); +void cit_panic_backtrace(int SigNum); +void master_startup (void); +void master_cleanup (int exitcode); +void set_wtmpsupp (char *newtext); +void set_wtmpsupp_to_current_room(void); +void do_command_loop(void); +void do_async_loop(void); +void begin_session(struct CitContext *con); +void citproto_begin_session(void); +void citproto_begin_admin_session(void); +void GenerateRoomDisplay(char *real_room, + CitContext *viewed, + CitContext *viewer); +extern int panic_fd; +char CtdlCheckExpress(void); +extern time_t server_startup_time; +extern int openid_level_supported;