summaryrefslogtreecommitdiffstats
path: root/src/gzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gzip.h')
-rw-r--r--src/gzip.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gzip.h b/src/gzip.h
index 53563e8..bdab8f2 100644
--- a/src/gzip.h
+++ b/src/gzip.h
@@ -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,