From: Tim Kientzle Date: Sat, 23 Nov 2013 23:59:38 +0000 (-0800) Subject: Export the seekable and streamable zip readers separately X-Git-Tag: v3.1.900a~361^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1579f4ba819c632046790a0d9be0610cfbd548a7;p=thirdparty%2Flibarchive.git Export the seekable and streamable zip readers separately to simplify testing. --- diff --git a/libarchive/archive.h b/libarchive/archive.h index 528144030..c89f0dcea 100644 --- a/libarchive/archive.h +++ b/libarchive/archive.h @@ -370,7 +370,15 @@ __LA_DECL int archive_read_support_format_rar(struct archive *); __LA_DECL int archive_read_support_format_raw(struct archive *); __LA_DECL int archive_read_support_format_tar(struct archive *); __LA_DECL int archive_read_support_format_xar(struct archive *); +/* archive_read_support_format_zip() enables both streamable and seekable + * zip readers. */ __LA_DECL int archive_read_support_format_zip(struct archive *); +/* Reads Zip archives as stream from beginning to end. Doesn't + * correctly handle SFX ZIP files or ZIP archives that have been modified + * in-place. */ +__LA_DECL int archive_read_support_format_zip_streamable(struct archive *); +/* Reads starting from central directory; requires seekable input. */ +__LA_DECL int archive_read_support_format_zip_seekable(struct archive *); /* Functions to manually set the format and filters to be used. This is * useful to bypass the bidding process when the format and filters to use