summaryrefslogtreecommitdiff
path: root/replay.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-16 20:59:51 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-16 20:59:51 +0100
commit968cee422ab1d61b4234127892d75f0497d8d8c2 (patch)
tree16b65ca2c52ec553cb7584d2259f5d3c11ec5902 /replay.h
parenta299b62e913df71bdd1c4b41d61d3fb098f12be7 (diff)
Add a configurable base directory for things like logs, defaulting to $HOME/.blabouncer/.
Diffstat (limited to 'replay.h')
-rw-r--r--replay.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/replay.h b/replay.h
index 7f1e331..983e05b 100644
--- a/replay.h
+++ b/replay.h
@@ -7,15 +7,16 @@
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
+#include <limits.h>
#define MAXCHAR 1000
#define TIMELEN 11 // 32-bit unixtime is up to 10 characters (+1 for null char) // TODO - Make this Year 2038 proof
#define TIMELENF 11 // [HH:MM:SS] = 10 characters + 1 for null char
-int replaylines(int seconds);
+int replaylines(int seconds, char *basedir);
-int readreplayline(int seconds, int linenum, char *str);
+int readreplayline(int seconds, int linenum, char *str, char *basedir);
-int writereplayline(char *str);
+int writereplayline(char *str, char *basedir);
#endif