summaryrefslogtreecommitdiffstats
path: root/install.h
diff options
context:
space:
mode:
Diffstat (limited to 'install.h')
-rw-r--r--install.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/install.h b/install.h
index 14de22556..1ec01e817 100644
--- a/install.h
+++ b/install.h
@@ -18,12 +18,11 @@
#define RECOVERY_INSTALL_H_
#include <string>
-
-#include "common.h"
-#include "minzip/Zip.h"
+#include <ziparchive/zip_archive.h>
enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT, INSTALL_NONE, INSTALL_SKIPPED,
INSTALL_RETRY };
+
// Install the package specified by root_path. If INSTALL_SUCCESS is
// returned and *wipe_cache is true on exit, caller should wipe the
// cache partition.
@@ -36,6 +35,6 @@ bool verify_package(const unsigned char* package_data, size_t package_size);
// Read meta data file of the package, write its content in the string pointed by meta_data.
// Return true if succeed, otherwise return false.
-bool read_metadata_from_package(ZipArchive* zip, std::string* meta_data);
+bool read_metadata_from_package(ZipArchiveHandle zip, std::string* meta_data);
#endif // RECOVERY_INSTALL_H_