Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / include / ircd.h
index 950c07388c94e48ea6298862925245737dad74ff..df1a3980272fce4e7e329ebcdd17f22f92c26030 100644 (file)
@@ -5,9 +5,6 @@
  */
 #ifndef INCLUDED_ircd_h
 #define INCLUDED_ircd_h
-#ifndef INCLUDED_config_h
-#include "config.h"
-#endif
 #ifndef INCLUDED_struct_h
 #include "struct.h"           /* struct Client */
 #endif
 #include <sys/types.h>        /* size_t, time_t */
 #endif
 
+struct Daemon
+{
+  int          argc;
+  char**       argv;
+  pid_t        pid;
+  uid_t        uid;
+  uid_t        euid;
+  unsigned int bootopt;
+  int          running;
+  int          pid_fd;
+  const char*  server_bin;
+  const char*  server_root;
+  const char*  server_log;
+};
 
 /*
  * Macros
 #define MAJOR_PROTOCOL  "10"
 #define BASE_VERSION    "u2.10"
 
-/* Flags for bootup options (command line flags) */
-
-#define BOOT_QUICK  1
-#define BOOT_DEBUG  2
-#define BOOT_TTY    4
-
 /*
  * Proto types
  */
-
 extern void server_die(const char* message);
 extern void server_restart(const char* message);
 
@@ -47,7 +51,6 @@ extern struct Client  me;
 extern time_t         CurrentTime;
 extern struct Client* GlobalClientList;
 extern time_t         TSoffset;
-extern unsigned int   bootopt;
 extern time_t         nextdnscheck;
 extern time_t         nextconnect;
 extern int            GlobalRehashFlag;      /* 1 if SIGHUP is received */