aboutsummaryrefslogtreecommitdiff
path: root/libbb/atlas_bb64.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/atlas_bb64.h')
-rw-r--r--libbb/atlas_bb64.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libbb/atlas_bb64.h b/libbb/atlas_bb64.h
new file mode 100644
index 0000000..d745a9b
--- /dev/null
+++ b/libbb/atlas_bb64.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2013 RIPE NCC <atlas@ripe.net>
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ */
+
+struct buf
+{
+ size_t offset;
+ size_t size;
+ size_t maxsize;
+ char *buf;
+ int fd;
+};
+
+void buf_init(struct buf *buf, int fd);
+int buf_add(struct buf *buf, const void *data, size_t len );
+int buf_add_b64(struct buf *buf, void *data, size_t len, int mime_nl);
+void buf_cleanup(struct buf *buf);