From 1579f4ba819c632046790a0d9be0610cfbd548a7 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sat, 23 Nov 2013 15:59:38 -0800 Subject: [PATCH] Export the seekable and streamable zip readers separately to simplify testing. --- libarchive/archive.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.47.2