diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-11-16 00:21:37 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis@zem.fi> | 2018-11-16 00:21:37 +0000 |
commit | e30fd51e676a9d03286c6dce5950314019800de4 (patch) | |
tree | 59490e6ddd892803371fc4672d590854afe5583d /util.h | |
parent | 13b42a939aaf63e1055f3313ddcfbfb84a049089 (diff) | |
download | nano-exporter-e30fd51e676a9d03286c6dce5950314019800de4.tar.gz nano-exporter-e30fd51e676a9d03286c6dce5950314019800de4.tar.xz nano-exporter-e30fd51e676a9d03286c6dce5950314019800de4.zip |
Add rudimentary (fake) HTTP server.
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h index 3fa5fd0..70cd474 100644 --- a/util.h +++ b/util.h @@ -11,11 +11,13 @@ typedef struct cbuf cbuf; cbuf *cbuf_alloc(size_t initial_size, size_t max_size); void cbuf_reset(cbuf *buf); +size_t cbuf_len(cbuf *buf); void cbuf_put(cbuf *buf, const void *src, size_t len); void cbuf_puts(cbuf *buf, const char *src); void cbuf_putc(cbuf *buf, int c); void cbuf_putf(cbuf *buf, const char *fmt, ...); const char *cbuf_get(struct cbuf *buf, size_t *len); +int cbuf_cmp(cbuf *buf, const char *other); // string lists |