diff options
author | Steve Kondik <steve@cyngn.com> | 2015-06-10 13:02:50 -0700 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:35:48 -0800 |
commit | cacf65446dde64dc47c9a4d9a6af002f564274ea (patch) | |
tree | 78de44cedffc438daafa9aafb70998c8759dd85b /minzip/Zip.h | |
parent | 3d561da3d9f9a5d690a68c96be29d65f0a4d55bb (diff) | |
download | bootable_recovery-cacf65446dde64dc47c9a4d9a6af002f564274ea.zip bootable_recovery-cacf65446dde64dc47c9a4d9a6af002f564274ea.tar.gz bootable_recovery-cacf65446dde64dc47c9a4d9a6af002f564274ea.tar.bz2 |
updater: Add LZMA support to blockimg
* This adds support for LZMA compressed blockimages. The space savings
from doing this is significant and will reduce our CDN costs by quite
a bit.
* I'll spend the saved $$$ on beer.
Change-Id: I6679220aaa29592fe6bbccd4136f0c239e45e2ae
Diffstat (limited to 'minzip/Zip.h')
-rw-r--r-- | minzip/Zip.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/minzip/Zip.h b/minzip/Zip.h index 86d8db5..92c20a0 100644 --- a/minzip/Zip.h +++ b/minzip/Zip.h @@ -114,6 +114,18 @@ bool mzProcessZipEntryContents(const ZipArchive *pArchive, void *cookie); /* + * Similar to mzProcessZipEntryContents, but explicitly process the stream + * using XZ/LZMA before calling processFunction. + * + * This is a separate function for use by the updater. LZMA provides huge + * size reductions vs deflate, but isn't actually supported by the ZIP format. + * We need to process it using as little memory as possible. + */ +bool mzProcessZipEntryContentsXZ(const ZipArchive *pArchive, + const ZipEntry *pEntry, ProcessZipEntryContentsFunction processFunction, + void *cookie); + +/* * Read an entry into a buffer allocated by the caller. */ bool mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry, |