"Fossies" - the Fresh Open Source Software Archive

Member "citadel/citserver.h" (5 Jun 2021, 1585 Bytes) of package /linux/www/citadel.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "citserver.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 9.01_vs_902.

    1 /*
    2  * Copyright (c) 1987-2019 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 /* I fucking hate const and want it to die. */
   14 #pragma GCC diagnostic ignored "-Wcast-qual"
   15 
   16 #include "serv_extensions.h"
   17 #include "context.h"
   18 #include "ctdl_module.h"
   19 
   20 /* Simple linked list structures ... used in a bunch of different places. */
   21 typedef struct RoomProcList RoomProcList;
   22 struct RoomProcList {
   23         struct RoomProcList *next;
   24         char name[ROOMNAMELEN];
   25         char lcname[ROOMNAMELEN];
   26     long namelen;
   27     long lastsent;
   28     long key;
   29     long QRNum;
   30 };
   31 struct UserProcList {
   32     struct UserProcList *next;
   33     char user[USERNAME_SIZE];
   34 };
   35 
   36 #define CTDLUSERIP      (IsEmptyStr(CC->cs_addr) ?  CC->cs_clientinfo: CC->cs_addr)
   37 
   38 void master_startup (void);
   39 int master_cleanup (int exitcode);
   40 void set_wtmpsupp (char *newtext);
   41 void set_wtmpsupp_to_current_room(void);
   42 void do_command_loop(void);
   43 void do_async_loop(void);
   44 void begin_session(struct CitContext *con);
   45 void citproto_begin_session(void);
   46 void citproto_begin_admin_session(void);
   47 
   48 void help_subst (char *strbuf, char *source, char *dest);
   49 
   50 extern int panic_fd;
   51 char CtdlCheckExpress(void);
   52 extern time_t server_startup_time;
   53 extern int openid_level_supported;