* Began (but did not finish) applying GPL3+ declarations to each source file. This...
[citadel.git] / citadel / citserver.h
index 0db931cb89f6bed47a6338e99c31b533e30d2707..63d8708e216fdae39709a299bbe36dd9b9bc78a2 100644 (file)
@@ -1,31 +1,64 @@
-/* $Id$ */
+/* $Id$
+ *
+ * Copyright (c) 1987-2009 by the citadel.org team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  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.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#include "serv_extensions.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];
+};
+
+void cit_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 RemoveContext (struct CitContext *);
 void set_wtmpsupp (char *newtext);
 void set_wtmpsupp_to_current_room(void);
-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 deallocate_user_data(struct CitContext *con);
-void *CtdlGetUserData(unsigned long requested_sym);
-void CtdlAllocUserData(unsigned long requested_sym, size_t num_bytes);
-int CtdlGetDynamicSymbol(void);
-
-extern int do_defrag;
+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 panic_fd;
+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
+};
+
+
+
+extern time_t server_startup_time;
+