sendcommand now uses the admin socket, eliminating any need to touch the config file.
[citadel.git] / citadel / citserver.h
index b5d27a243ff000f1f70c59ba076fbb1ae9627dae..1235a81d865ef40fbd01fb755816ab844b2737f6 100644 (file)
@@ -1,6 +1,17 @@
-/* $Id$ */
+/*
+ * 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"
 
 /* Simple linked list structures ... used in a bunch of different places. */
 struct RoomProcList {
@@ -12,49 +23,24 @@ struct UserProcList {
        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 (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);
-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);
 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 GenerateRoomDisplay(char *real_room,
-                        struct CitContext *viewed,
-                        struct CitContext *viewer);
-extern int do_defrag;
+                        CitContext *viewed,
+                        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;
+extern int openid_level_supported;