summaryrefslogtreecommitdiffstats
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-27 21:06:45 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-27 21:06:45 +0200
commita96572fba84573e81f6b363f1aee0243c7829729 (patch)
treee43c0e8729b0ab3c5625b9a96fca35839974b65c /src/apk_io.h
parentf0609951b9fd2938c0f30853e0aa6b08b8698a88 (diff)
downloadapk-tools-a96572fba84573e81f6b363f1aee0243c7829729.tar.bz2
apk-tools-a96572fba84573e81f6b363f1aee0243c7829729.tar.xz
db: compressed index file
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index f0b06e1..96dc7c9 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -38,6 +38,8 @@ struct apk_bstream {
void (*close)(void *stream, csum_p csum);
};
+struct apk_istream *apk_gunzip_bstream(struct apk_bstream *);
+
struct apk_istream *apk_istream_from_fd(int fd);
struct apk_istream *apk_istream_from_file(const char *file);
size_t apk_istream_skip(struct apk_istream *istream, size_t size);
@@ -46,6 +48,8 @@ size_t apk_istream_splice(void *stream, int fd, size_t size);
struct apk_bstream *apk_bstream_from_istream(struct apk_istream *istream);
struct apk_bstream *apk_bstream_from_fd(int fd);
+struct apk_istream *apk_istream_from_file_gz(const char *file);
+
apk_blob_t apk_blob_from_istream(struct apk_istream *istream, size_t size);
apk_blob_t apk_blob_from_file(const char *file);