summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-28 23:24:54 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-28 23:33:53 +0100
commit92d106733468893d921dc678296a6716ddf979a4 (patch)
tree4b9d9563c09d90714d273bcaa96b7d3623a4f6a1 /functions.h
parent8a9732c33888462d6fb34f693688e43ff1e31eaa (diff)
Implement debugging to file and set the default configuration file to be that.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index 29518aa..d56a295 100644
--- a/functions.h
+++ b/functions.h
@@ -13,6 +13,7 @@
#include <arpa/inet.h>
#include <sys/select.h>
#include <stdarg.h>
+#include <limits.h>
#define MAXDATASIZE 513 // max number of bytes we can get at once (RFC2812 says 512, plus one for null terminator)
@@ -20,6 +21,9 @@
#define OK 0
#define NO_INPUT 1
#define TOO_LONG 2
+#define DEBUG_NONE 0
+#define DEBUG_FILE 1
+#define DEBUG_SCREEN 2
// Print debugging output if enabled
void debugprint(char *format, ...);