From 92d106733468893d921dc678296a6716ddf979a4 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 28 May 2019 23:24:54 +0100 Subject: Implement debugging to file and set the default configuration file to be that. --- functions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 29518aa..d56a295 100644 --- a/functions.h +++ b/functions.h @@ -13,6 +13,7 @@ #include #include #include +#include #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, ...); -- cgit v1.2.3