summaryrefslogtreecommitdiff
path: root/puff.h
blob: 34e7649e860473db3692cbf6e32613a64db90e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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