* Began (but did not finish) applying GPL3+ declarations to each source file. This...
[citadel.git] / citadel / citserver.h
index 24531928043c0fa42aec6cfd747d75fbc998d023..63d8708e216fdae39709a299bbe36dd9b9bc78a2 100644 (file)
@@ -1,43 +1,49 @@
-/* $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 "dynloader.h"
+#include "serv_extensions.h"
 
-/* Simple linked list structure ... used in a bunch of different places. */
+/* 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 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_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 DLEXP int do_defrag;
+extern int panic_fd;
 char CtdlCheckExpress(void);
 
 int CtdlAccessCheck(int);
@@ -54,4 +60,5 @@ enum {
 
 
 
+extern time_t server_startup_time;