summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2017-05-29 00:59:04 -0500
committerElliott Hughes2017-06-04 13:53:48 -0500
commit55fd293dfe89c7b1f856bc60cac643ee72d5ef22 (patch)
treeaffedba31808951788e8ac3db770539a7afea994 /include
parentb46fd68653131d276ccb23ba7790640c6a9c1c7d (diff)
downloadplatform-system-core-55fd293dfe89c7b1f856bc60cac643ee72d5ef22.tar.gz
platform-system-core-55fd293dfe89c7b1f856bc60cac643ee72d5ef22.tar.xz
platform-system-core-55fd293dfe89c7b1f856bc60cac643ee72d5ef22.zip
Add libziparchive-based unzip.
Bug: N/A Test: new toybox unzip.test Change-Id: I00be388578be9a0a0390a9e2ecfac664c6ab39ca
Diffstat (limited to 'include')
-rw-r--r--include/ziparchive/zip_archive.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ziparchive/zip_archive.h b/include/ziparchive/zip_archive.h
index 31fc2dfc9..ece86931a 100644
--- a/include/ziparchive/zip_archive.h
+++ b/include/ziparchive/zip_archive.h
@@ -71,8 +71,17 @@ struct ZipEntry {
71 // Modification time. The zipfile format specifies 71 // Modification time. The zipfile format specifies
72 // that the first two little endian bytes contain the time 72 // that the first two little endian bytes contain the time
73 // and the last two little endian bytes contain the date. 73 // and the last two little endian bytes contain the date.
74 // See `GetModificationTime`.
75 // TODO: should be overridden by extra time field, if present.
74 uint32_t mod_time; 76 uint32_t mod_time;
75 77
78 // Returns `mod_time` as a broken-down struct tm.
79 struct tm GetModificationTime() const;
80
81 // Suggested Unix mode for this entry, from the zip archive if created on
82 // Unix, or a default otherwise.
83 mode_t unix_mode;
84
76 // 1 if this entry contains a data descriptor segment, 0 85 // 1 if this entry contains a data descriptor segment, 0
77 // otherwise. 86 // otherwise.
78 uint8_t has_data_descriptor; 87 uint8_t has_data_descriptor;