diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-11-28 15:03:27 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-11-28 15:03:27 +0200 |
commit | 4bafa681feb2b902553e26fd88df0f06b0c0778a (patch) | |
tree | a1d1ee116c71ac59572c040f05603380e581848b /src/apk_io.h | |
parent | 5ea81ca564534e4ef5eefbe723a74dbf490e6e07 (diff) | |
download | apk-tools-4bafa681feb2b902553e26fd88df0f06b0c0778a.tar.gz apk-tools-4bafa681feb2b902553e26fd88df0f06b0c0778a.tar.bz2 apk-tools-4bafa681feb2b902553e26fd88df0f06b0c0778a.tar.xz apk-tools-4bafa681feb2b902553e26fd88df0f06b0c0778a.zip |
io: prepartions for url handling
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 96dc7c9..d9522f6 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -42,11 +42,14 @@ 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); +struct apk_istream *apk_istream_from_url(const char *url); size_t apk_istream_skip(struct apk_istream *istream, size_t size); 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_bstream *apk_bstream_from_file(const char *file); +struct apk_bstream *apk_bstream_from_url(const char *url); struct apk_istream *apk_istream_from_file_gz(const char *file); |