diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-06 01:01:53 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-06 01:01:53 -0700 |
commit | 923b945be41739c109b5452567a521fa03c44498 (patch) | |
tree | 54296ec9727e5b8e1da669faf99514a6ebf0781e /web/web_misc.h | |
parent | f2923a29cffcfd866ef929518f753f4cd4dee9ec (diff) | |
download | dartboat-923b945be41739c109b5452567a521fa03c44498.tar.gz dartboat-923b945be41739c109b5452567a521fa03c44498.tar.xz |
web: simplify buffering of display data
Diffstat (limited to 'web/web_misc.h')
-rw-r--r-- | web/web_misc.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdbool.h> + +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 |