summaryrefslogtreecommitdiffstats
path: root/src/gzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gzip.h')
-rw-r--r--src/gzip.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gzip.h b/src/gzip.h
index cf017ce..d42a969 100644
--- a/src/gzip.h
+++ b/src/gzip.h
@@ -20,10 +20,11 @@
#ifndef OPKG_OPK_GZIP_H_
#define OPKG_OPK_GZIP_H_
+#include <stdio.h>
+
struct opkg_opk_gzip;
typedef int (opkg_opk_gzip_read_func)(void *, char **, size_t *);
-typedef int (opkg_opk_gzip_write_func)(void *, size_t);
/*
* Allocates and initializes a decompression structure.
@@ -45,11 +46,7 @@ struct opkg_opk_gzip *
opkg_opk_gzip_init_read(opkg_opk_gzip_read_func *read_func, void *user_data);
struct opkg_opk_gzip *
-opkg_opk_gzip_init_write(opkg_opk_gzip_write_func *write_func, void *user_data);
-
-int
-opkg_opk_gzip_set_write_buffer(struct opkg_opk_gzip *gzip, char *buffer,
- size_t size);
+opkg_opk_gzip_init_write(FILE *write_fp);
/*
* Reads and decompresses data to output the next record (512 octets).