summaryrefslogtreecommitdiff
path: root/replay.h
diff options
context:
space:
mode:
Diffstat (limited to 'replay.h')
-rw-r--r--replay.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/replay.h b/replay.h
index ee3f483..5ae9994 100644
--- a/replay.h
+++ b/replay.h
@@ -19,6 +19,7 @@
#define REPLAY_H_INCLUDED
#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -40,6 +41,10 @@ int replaylines(int seconds, char *basedir);
int readreplayline(int seconds, int linenum, char *str, char *basedir);
+// Returns the number of seconds ago that 'nick' last spoke, or -1 if there is a problem.
+// 'basedir' is the directory in which to find 'replay.log'.
+int lastspokesecondsago(char *nick, char *basedir);
+
int writereplayline(char *str, char *basedir);
#endif