From 0559bff00a6be2054194632c3543bf62af1fb56f Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sat, 11 May 2019 19:03:57 +0100 Subject: Add the ability to replay messages from a replay log file. (No replay log file writing yet.) --- replay.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 replay.h (limited to 'replay.h') diff --git a/replay.h b/replay.h new file mode 100644 index 0000000..e0b5822 --- /dev/null +++ b/replay.h @@ -0,0 +1,21 @@ +#ifndef REPLAY_H_INCLUDED +#define REPLAY_H_INCLUDED + +#define _XOPEN_SOURCE +#include +#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 relaylines(int seconds); + +int readrelayline(int seconds, int linenum, char *str); + +int writerelayline(char *str); + +#endif -- cgit v1.2.3