summaryrefslogtreecommitdiffstats
path: root/private/install.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-03 00:48:54 +0200
committerTao Bao <tbao@google.com>2017-05-08 21:16:45 +0200
commit00d5757186c279ba5e8a52a6f5209be3e7152025 (patch)
treeef219b66bb8ac8f7a20a182a91292213131505aa /private/install.h
parentMerge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" (diff)
downloadandroid_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar.gz
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar.bz2
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar.lz
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar.xz
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.tar.zst
android_bootable_recovery-00d5757186c279ba5e8a52a6f5209be3e7152025.zip
Diffstat (limited to 'private/install.h')
-rw-r--r--private/install.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/private/install.h b/private/install.h
index 12d303b01..ef64bd41d 100644
--- a/private/install.h
+++ b/private/install.h
@@ -23,5 +23,9 @@
#include <ziparchive/zip_archive.h>
-int update_binary_command(const std::string& path, ZipArchiveHandle zip, int retry_count,
- int status_fd, std::vector<std::string>* cmd);
+// Extract the update binary from the open zip archive |zip| located at |package| to |binary_path|.
+// Store the command line that should be called into |cmd|. The |status_fd| is the file descriptor
+// the child process should use to report back the progress of the update.
+int update_binary_command(const std::string& package, ZipArchiveHandle zip,
+ const std::string& binary_path, int retry_count, int status_fd,
+ std::vector<std::string>* cmd);