diff options
author | Narayan Kamath <narayan@google.com> | 2015-02-24 14:31:07 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-24 14:31:07 +0100 |
commit | 8d29f4cab33227f1d12d37214b39f4d22b5bd08b (patch) | |
tree | c6a975511ebcb99b73e6081a9d7ac57720e46e39 /minzip/Zip.h | |
parent | am 37e68a1d: am f9ee77ab: am 9e95c515: Merge "Fix a printf format warning." (diff) | |
parent | am 6f58e899: am 829d392a: Merge "Delete unused functions from minzip." (diff) | |
download | android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar.gz android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar.bz2 android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar.lz android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar.xz android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.tar.zst android_bootable_recovery-8d29f4cab33227f1d12d37214b39f4d22b5bd08b.zip |
Diffstat (limited to 'minzip/Zip.h')
-rw-r--r-- | minzip/Zip.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/minzip/Zip.h b/minzip/Zip.h index 2054b38a4..54eab3222 100644 --- a/minzip/Zip.h +++ b/minzip/Zip.h @@ -92,49 +92,15 @@ INLINE unsigned int mzZipEntryCount(const ZipArchive* pArchive) { return pArchive->numEntries; } -/* - * Get an entry by index. Returns NULL if the index is out-of-bounds. - */ -INLINE const ZipEntry* -mzGetZipEntryAt(const ZipArchive* pArchive, unsigned int index) -{ - if (index < pArchive->numEntries) { - return pArchive->pEntries + index; - } - return NULL; -} - -/* - * Get the index number of an entry in the archive. - */ -INLINE unsigned int -mzGetZipEntryIndex(const ZipArchive *pArchive, const ZipEntry *pEntry) { - return pEntry - pArchive->pEntries; -} - -/* - * Simple accessors. - */ -INLINE UnterminatedString mzGetZipEntryFileName(const ZipEntry* pEntry) { - UnterminatedString ret; - ret.str = pEntry->fileName; - ret.len = pEntry->fileNameLen; - return ret; -} INLINE long mzGetZipEntryOffset(const ZipEntry* pEntry) { return pEntry->offset; } INLINE long mzGetZipEntryUncompLen(const ZipEntry* pEntry) { return pEntry->uncompLen; } -INLINE long mzGetZipEntryModTime(const ZipEntry* pEntry) { - return pEntry->modTime; -} INLINE long mzGetZipEntryCrc32(const ZipEntry* pEntry) { return pEntry->crc32; } -bool mzIsZipEntrySymlink(const ZipEntry* pEntry); - /* * Type definition for the callback function used by @@ -164,12 +130,6 @@ bool mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry, char* buf, int bufLen); /* - * Check the CRC on this entry; return true if it is correct. - * May do other internal checks as well. - */ -bool mzIsZipEntryIntact(const ZipArchive *pArchive, const ZipEntry *pEntry); - -/* * Inflate and write an entry to a file. */ bool mzExtractZipEntryToFile(const ZipArchive *pArchive, @@ -183,17 +143,6 @@ bool mzExtractZipEntryToBuffer(const ZipArchive *pArchive, const ZipEntry *pEntry, unsigned char* buffer); /* - * Return a pointer and length for a given entry. The returned region - * should be valid until pArchive is closed, and should be treated as - * read-only. - * - * Only makes sense for entries which are stored (ie, not compressed). - * No guarantees are made regarding alignment of the returned pointer. - */ -bool mzGetStoredEntry(const ZipArchive *pArchive, - const ZipEntry* pEntry, unsigned char **addr, size_t *length); - -/* * Inflate all entries under zipDir to the directory specified by * targetDir, which must exist and be a writable directory. * |