X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.h;h=4224fcdcb3d56934b5a309575aeda98d6060d54a;hb=60f03c2407f834ba677dfac9fe545db255ac8263;hp=7e51353c2c3f6c8ad70abe33cc94fa105ca2a696;hpb=c9b74bf4f13068eec3918a78e2267568230f0361;p=citadel.git diff --git a/citadel/citserver.h b/citadel/citserver.h index 7e51353c2..4224fcdcb 100644 --- a/citadel/citserver.h +++ b/citadel/citserver.h @@ -1,23 +1,55 @@ +/* + * 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" +#include "ctdl_module.h" + +/* Simple linked list structures ... used in a bunch of different places. */ +typedef struct RoomProcList RoomProcList; +struct RoomProcList { + struct RoomProcList *next; + OneRoomNetCfg *OneRNCfg; + char name[ROOMNAMELEN]; + char lcname[ROOMNAMELEN]; + long namelen; + long lastsent; + long key; + long QRNum; +}; +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 (void); -void cleanup_stuff (void *arg); +void master_cleanup (int exitcode); void set_wtmpsupp (char *newtext); -void cmd_info (void); -void cmd_rchg (char *newroomname); -void cmd_hchg (char *newhostname); -void cmd_uchg (char *newusername); -void cmd_time (void); -int is_public_client (char *where); -void cmd_iden (char *argbuf); -void cmd_stel (char *cmdbuf); -void cmd_mesg (char *mname); -void cmd_emsg (char *mname); -void cmd_rwho (void); -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 *context_loop (struct CitContext *con); +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 help_subst (char *strbuf, char *source, char *dest); + +extern int panic_fd; +char CtdlCheckExpress(void); +int CtdlIsPublicClient(void); +extern time_t server_startup_time; +extern int openid_level_supported;