diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-16 20:59:51 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-16 20:59:51 +0100 |
commit | 968cee422ab1d61b4234127892d75f0497d8d8c2 (patch) | |
tree | 16b65ca2c52ec553cb7584d2259f5d3c11ec5902 /replay.h | |
parent | a299b62e913df71bdd1c4b41d61d3fb098f12be7 (diff) |
Add a configurable base directory for things like logs, defaulting to $HOME/.blabouncer/.
Diffstat (limited to 'replay.h')
-rw-r--r-- | replay.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |