summaryrefslogtreecommitdiffstats
path: root/include/ziparchive
diff options
context:
space:
mode:
authorYusuke Sato <yusukes@google.com>2015-06-19 17:04:15 -0700
committerYusuke Sato <yusukes@google.com>2015-06-23 17:31:16 -0700
commita4a80693d9687982461decdcf86920b3e76bb41a (patch)
treedb28ab52664677368bff15121cd5142548f9e6f0 /include/ziparchive
parent1cddc2092f544c5eac339e59746436facfdd5dc7 (diff)
downloadsystem_core-a4a80693d9687982461decdcf86920b3e76bb41a.zip
system_core-a4a80693d9687982461decdcf86920b3e76bb41a.tar.gz
system_core-a4a80693d9687982461decdcf86920b3e76bb41a.tar.bz2
Add |optional_suffix| to StartIteration()
so that PackageManagerService can iterate over files with a specific file extension like ".so". Bug: 21957428 Change-Id: I76ed9560d4d1e00d297a97d518ec357166be1981
Diffstat (limited to 'include/ziparchive')
-rw-r--r--include/ziparchive/zip_archive.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ziparchive/zip_archive.h b/include/ziparchive/zip_archive.h
index 386a390..3b00683 100644
--- a/include/ziparchive/zip_archive.h
+++ b/include/ziparchive/zip_archive.h
@@ -153,7 +153,9 @@ int32_t FindEntry(const ZipArchiveHandle handle, const ZipEntryName& entryName,
* Returns 0 on success and negative values on failure.
*/
int32_t StartIteration(ZipArchiveHandle handle, void** cookie_ptr,
- const ZipEntryName* optional_prefix);
+ const ZipEntryName* optional_prefix,
+ // TODO: Remove the default parameter.
+ const ZipEntryName* optional_suffix = NULL);
/*
* Advance to the next element in the zipfile in iteration order.