aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/xbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/xbuf.h')
-rw-r--r--contrib/less/xbuf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/less/xbuf.h b/contrib/less/xbuf.h
index ba62ef1722b1..acd5485ca4ef 100644
--- a/contrib/less/xbuf.h
+++ b/contrib/less/xbuf.h
@@ -3,13 +3,17 @@
struct xbuffer
{
- char *data;
+ unsigned char *data;
int end;
int size;
};
void xbuf_init(struct xbuffer *xbuf);
+void xbuf_deinit(struct xbuffer *xbuf);
void xbuf_reset(struct xbuffer *xbuf);
-void xbuf_add(struct xbuffer *xbuf, char ch);
+void xbuf_add_byte(struct xbuffer *xbuf, unsigned char b);
+void xbuf_add_data(struct xbuffer *xbuf, unsigned char *data, int len);
+int xbuf_pop(struct xbuffer *xbuf);
+char *xbuf_char_data(struct xbuffer *xbuf);
#endif