From aef0f036f08f8949e4e2a5b84c9199ef8ec40595 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 7 Nov 2008 17:11:08 +0200 Subject: use zlib internally to decompress --- src/apk_package.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/apk_package.h') diff --git a/src/apk_package.h b/src/apk_package.h index 68e63e1..6f13e94 100644 --- a/src/apk_package.h +++ b/src/apk_package.h @@ -14,6 +14,7 @@ #include "apk_version.h" #include "apk_hash.h" +#include "apk_io.h" struct apk_database; struct apk_name; @@ -75,7 +76,7 @@ struct apk_package *apk_pkg_read(struct apk_database *db, const char *name); void apk_pkg_free(struct apk_package *pkg); int apk_pkg_get_state(struct apk_package *pkg); -int apk_pkg_add_script(struct apk_package *pkg, int fd, +int apk_pkg_add_script(struct apk_package *pkg, struct apk_istream *is, unsigned int type, unsigned int size); int apk_pkg_run_script(struct apk_package *pkg, int root_fd, unsigned int type); -- cgit v1.2.3