X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.h;h=adfe476c1866afcd8658947fe7c93923c70eda7c;hb=9ffea7c3315046ddcea2589656c13da5f5e0c076;hp=fc8d014959f8f1c4eb9b711e4a59a0438ae63401;hpb=3c7bc53bb9f9fab6899206539bba8f794509f37b;p=citadel.git diff --git a/citadel/citserver.h b/citadel/citserver.h index fc8d01495..adfe476c1 100644 --- a/citadel/citserver.h +++ b/citadel/citserver.h @@ -1,61 +1,53 @@ -/* $Id$ */ +/* + * Copyright (c) 1987-2019 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. + */ + +/* I fucking hate const and want it to die. */ +#pragma GCC diagnostic ignored "-Wcast-qual" #include "serv_extensions.h" +#include "context.h" +#include "ctdl_module.h" /* Simple linked list structures ... used in a bunch of different places. */ +typedef struct RoomProcList RoomProcList; struct RoomProcList { struct RoomProcList *next; char name[ROOMNAMELEN]; + char lcname[ROOMNAMELEN]; + long namelen; + long lastsent; + long key; + long QRNum; }; struct UserProcList { struct UserProcList *next; - char user[64]; + char user[USERNAME_SIZE]; }; +#define CTDLUSERIP (IsEmptyStr(CC->cs_addr) ? CC->cs_clientinfo: CC->cs_addr) + void master_startup (void); -void master_cleanup (void); -void RemoveContext (struct CitContext *); +int master_cleanup (int exitcode); void set_wtmpsupp (char *newtext); void set_wtmpsupp_to_current_room(void); -void cmd_info (void); -void cmd_time (void); -int is_public_client (char *where); -void cmd_iden (char *argbuf); -void cmd_mesg (char *mname); -void cmd_emsg (char *mname); -void cmd_term (char *cmdbuf); -void cmd_more (void); -void cmd_echo (char *etext); -void cmd_ipgm (char *argbuf); -void cmd_down (void); -void cmd_scdn (char *argbuf); -void cmd_extn (char *argbuf); -void deallocate_user_data(struct CitContext *con); -void *CtdlGetUserData(unsigned long requested_sym); -void CtdlAllocUserData(unsigned long requested_sym, size_t num_bytes); -void CtdlReallocUserData(unsigned long requested_sym, size_t num_bytes); -int CtdlGetDynamicSymbol(void); void do_command_loop(void); +void do_async_loop(void); void begin_session(struct CitContext *con); void citproto_begin_session(void); -void GenerateRoomDisplay(char *real_room, - struct CitContext *viewed, - struct CitContext *viewer); -extern int do_defrag; -char CtdlCheckExpress(void); - -int CtdlAccessCheck(int); - -/* 'required access level' values which may be passed to CtdlAccessCheck() - */ -enum { - ac_none, - ac_logged_in, - ac_room_aide, - ac_aide, - ac_internal -}; - +void citproto_begin_admin_session(void); +void help_subst (char *strbuf, char *source, char *dest); +extern int panic_fd; +char CtdlCheckExpress(void); extern time_t server_startup_time; +extern int openid_level_supported;