diff options
Diffstat (limited to 'src/gzip.h')
-rw-r--r-- | src/gzip.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -20,7 +20,16 @@ #ifndef OPKG_OPK_GZIP_H_ #define OPKG_OPK_GZIP_H_ -struct opkg_opk_gzip_state; +#include <stdio.h> +#include <zlib.h> + +#define OPKG_OPK_GZIP_BUFFER_SIZE 8192 + +struct opkg_opk_gzip_state { + FILE *input_file; + unsigned char input_buffer[OPKG_OPK_GZIP_BUFFER_SIZE]; + z_stream stream; +}; int opkg_opk_gzip_init_from_file(struct opkg_opk_gzip_state *state, |