diff options
author | Doug Zongker <dougz@android.com> | 2009-05-06 02:50:21 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-05-06 17:40:28 +0200 |
commit | 683c4628039a8cb6dad1a086fae23a7d71438414 (patch) | |
tree | aacd5abd9b128d786f651b2dfb2a5eb5400c5e43 /minzip/Zip.h | |
parent | handle short writes when unzipping files (diff) | |
download | android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar.gz android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar.bz2 android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar.lz android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar.xz android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.tar.zst android_bootable_recovery-683c4628039a8cb6dad1a086fae23a7d71438414.zip |
Diffstat (limited to '')
-rw-r--r-- | minzip/Zip.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/minzip/Zip.h b/minzip/Zip.h index 1c1df2fae..57c0abd2c 100644 --- a/minzip/Zip.h +++ b/minzip/Zip.h @@ -56,6 +56,14 @@ typedef struct { } UnterminatedString; /* + * The information we pass down to writeProcessFunction. + */ +typedef struct { + int fd; + unsigned char* aligned_buffer; +} WriteInfo; + +/* * Open a Zip archive. * * On success, returns 0 and populates "pArchive". Returns nonzero errno @@ -166,7 +174,7 @@ bool mzIsZipEntryIntact(const ZipArchive *pArchive, const ZipEntry *pEntry); * Inflate and write an entry to a file. */ bool mzExtractZipEntryToFile(const ZipArchive *pArchive, - const ZipEntry *pEntry, int fd); + const ZipEntry *pEntry, WriteInfo *wi); /* * Inflate all entries under zipDir to the directory specified by |