diff options
author | Doug Zongker <dougz@android.com> | 2009-05-06 20:31:43 +0200 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-06 20:31:43 +0200 |
commit | 1c10ff34b51637155b234703100b82ed9e1ba947 (patch) | |
tree | aacd5abd9b128d786f651b2dfb2a5eb5400c5e43 /minzip/Zip.h | |
parent | am 596271f: handle short writes when unzipping files (diff) | |
parent | align data passed to write() on 32k boundaries (diff) | |
download | android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar.gz android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar.bz2 android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar.lz android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar.xz android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.tar.zst android_bootable_recovery-1c10ff34b51637155b234703100b82ed9e1ba947.zip |
Diffstat (limited to 'minzip/Zip.h')
-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 |