From 968cee422ab1d61b4234127892d75f0497d8d8c2 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 16 May 2019 20:59:51 +0100 Subject: Add a configurable base directory for things like logs, defaulting to $HOME/.blabouncer/. --- replay.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'replay.h') diff --git a/replay.h b/replay.h index 7f1e331..983e05b 100644 --- a/replay.h +++ b/replay.h @@ -7,15 +7,16 @@ #include #include #include +#include #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 -- cgit v1.2.3