aboutsummaryrefslogtreecommitdiff
path: root/puff.h
diff options
context:
space:
mode:
Diffstat (limited to 'puff.h')
-rw-r--r--puff.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/puff.h b/puff.h
new file mode 100644
index 0000000..34e7649
--- /dev/null
+++ b/puff.h
@@ -0,0 +1,15 @@
+/* puff.h -- interface to puff(), a simple DEFLATE decompressor.
+ * puff.c is Mark Adler's public-domain reference inflate (from zlib/contrib).
+ * clectio uses it to unpack its compiled scripture text, which the build packs
+ * with gzip (a raw DEFLATE stream; the gzip header/trailer are stripped by
+ * mktext, which stores [uint32 raw length][raw DEFLATE]).
+ */
+#ifndef PUFF_H
+#define PUFF_H
+
+int puff(unsigned char *dest, /* pointer to destination pointer */
+ unsigned long *destlen, /* amount of output space / used */
+ const unsigned char *source, /* pointer to source data pointer */
+ unsigned long *sourcelen); /* amount of input available / used */
+
+#endif