From 923b945be41739c109b5452567a521fa03c44498 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 6 May 2022 01:01:53 -0700 Subject: web: simplify buffering of display data --- web/web_misc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 web/web_misc.h (limited to 'web/web_misc.h') diff --git a/web/web_misc.h b/web/web_misc.h new file mode 100644 index 0000000..9872181 --- /dev/null +++ b/web/web_misc.h @@ -0,0 +1,14 @@ +#ifndef WEB_MISC_H +#define WEB_MISC_H + +#include + +typedef struct bufstr { + char *fl, *buf; +} bufstr; + +void bufstr_buf(bufstr *b, char *str); +bool bufstr_changed(bufstr *b); +char *bufstr_flush(bufstr *b); + +#endif -- cgit v1.2.3-70-g09d2