From 8b70aa21da96d9dcad641c3fe2787307d5610036 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 28 Oct 2019 19:21:44 -0400 Subject: Add option to save and load ring contents across restarts --- bounce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bounce.h') diff --git a/bounce.h b/bounce.h index 9221185..6e9ddbd 100644 --- a/bounce.h +++ b/bounce.h @@ -15,6 +15,7 @@ */ #include +#include #include #include #include @@ -64,6 +65,8 @@ size_t ringDiff(size_t consumer); const char *ringPeek(time_t *time, size_t consumer); const char *ringConsume(time_t *time, size_t consumer); void ringInfo(void); +int ringSave(FILE *file); +void ringLoad(FILE *file); void listenConfig(const char *cert, const char *priv); size_t listenBind(int fds[], size_t cap, const char *host, const char *port); -- cgit 1.4.1
summary refs log tree commit diff
Commit message (Expand)Author
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe