Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / include / s_debug.h
index 5bcc69bf647fd86f00b9228a157ca18d4fd4cb7c..9bc2560f3b1e14e64c35d5d8baffe8255abbdc95 100644 (file)
@@ -5,9 +5,6 @@
  */
 #ifndef INCLUDED_s_debug_h
 #define INCLUDED_s_debug_h
-#ifndef INCLUDED_config_h
-#include "config.h"
-#endif
 #ifndef INCLUDED_ircd_defs_h
 #include "ircd_defs.h"       /* Needed for HOSTLEN */
 #endif
@@ -30,16 +27,17 @@ struct Client;
 /*
  * defined debugging levels
  */
-#define DEBUG_FATAL  0
-#define DEBUG_ERROR  1  /* report_error() and other errors that are found */
-#define DEBUG_NOTICE 3
-#define DEBUG_DNS    4  /* used by all DNS related routines - a *lot* */
-#define DEBUG_INFO   5  /* general useful info */
-#define DEBUG_NUM    6  /* numerics */
-#define DEBUG_SEND   7  /* everything that is sent out */
-#define DEBUG_DEBUG  8  /* everything that is received */ 
-#define DEBUG_MALLOC 9  /* malloc/free calls */
-#define DEBUG_LIST  10  /* debug list use */
+#define DEBUG_FATAL   0
+#define DEBUG_ERROR   1  /* report_error() and other errors that are found */
+#define DEBUG_NOTICE  3
+#define DEBUG_DNS     4  /* used by all DNS related routines - a *lot* */
+#define DEBUG_INFO    5  /* general useful info */
+#define DEBUG_NUM     6  /* numerics */
+#define DEBUG_SEND    7  /* everything that is sent out */
+#define DEBUG_DEBUG   8  /* everything that is received */ 
+#define DEBUG_MALLOC  9  /* malloc/free calls */
+#define DEBUG_LIST   10  /* debug list use */
+#define DEBUG_ENGINE 11  /* debug event engine; can dump gigabyte logs */
 
 /*
  * proto types
@@ -56,8 +54,8 @@ extern void send_usage(struct Client *cptr, char *nick);
 
 #endif /* !DEBUGMODE */
 
-extern void open_debugfile(void);
+extern const char* debug_serveropts(void);
+extern void debug_init(int use_tty);
 extern void count_memory(struct Client *cptr, char *nick);
-extern char serveropts[];
 
 #endif /* INCLUDED_s_debug_h */