summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-12 23:48:44 +0100
committerDan Albert <danalbert@google.com>2015-03-12 23:48:44 +0100
commit39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c (patch)
tree8d37c46183371d33865bf67804134e31c7292de6 /minzip/Zip.h
parentMerge "Install the recovery binary directly to the recovery image." (diff)
parentam d5369e5d: (-s ours) am 18f371d8: updater: Check the return value from ApplyImagePatch / ApplyBSDiffPatch (diff)
downloadandroid_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar.gz
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar.bz2
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar.lz
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar.xz
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.tar.zst
android_bootable_recovery-39ac6de4c5d37bef3b6eb8b304ac97c8f7a6f47c.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/minzip/Zip.h b/minzip/Zip.h
index 54eab3222..a2b2c26fc 100644
--- a/minzip/Zip.h
+++ b/minzip/Zip.h
@@ -143,9 +143,12 @@ bool mzExtractZipEntryToBuffer(const ZipArchive *pArchive,
const ZipEntry *pEntry, unsigned char* buffer);
/*
- * Inflate all entries under zipDir to the directory specified by
+ * Inflate all files under zipDir to the directory specified by
* targetDir, which must exist and be a writable directory.
*
+ * Directory entries and symlinks are not extracted.
+ *
+ *
* The immediate children of zipDir will become the immediate
* children of targetDir; e.g., if the archive contains the entries
*
@@ -160,21 +163,15 @@ bool mzExtractZipEntryToBuffer(const ZipArchive *pArchive,
* /tmp/two
* /tmp/d/three
*
- * flags is zero or more of the following:
- *
- * MZ_EXTRACT_FILES_ONLY - only unpack files, not directories or symlinks
- * MZ_EXTRACT_DRY_RUN - don't do anything, but do invoke the callback
- *
* If timestamp is non-NULL, file timestamps will be set accordingly.
*
* If callback is non-NULL, it will be invoked with each unpacked file.
*
* Returns true on success, false on failure.
*/
-enum { MZ_EXTRACT_FILES_ONLY = 1, MZ_EXTRACT_DRY_RUN = 2 };
bool mzExtractRecursive(const ZipArchive *pArchive,
const char *zipDir, const char *targetDir,
- int flags, const struct utimbuf *timestamp,
+ const struct utimbuf *timestamp,
void (*callback)(const char *fn, void*), void *cookie,
struct selabel_handle *sehnd);