about summary refs log tree commit diff
path: root/util.h
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-11-16 00:21:37 +0000
committerHeikki Kallasjoki <fis@zem.fi>2018-11-16 00:21:37 +0000
commite30fd51e676a9d03286c6dce5950314019800de4 (patch)
tree59490e6ddd892803371fc4672d590854afe5583d /util.h
parent13b42a939aaf63e1055f3313ddcfbfb84a049089 (diff)
downloadnano-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.h2
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