summaryrefslogtreecommitdiffstats
path: root/private/install.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-09 02:13:54 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-05-09 02:13:55 +0200
commit197304aada4a2d1e42f201775cfaf1d619925817 (patch)
treeef219b66bb8ac8f7a20a182a91292213131505aa /private/install.h
parentMerge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" (diff)
parentAdd a binary path param to update_binary_command(). (diff)
downloadandroid_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar.gz
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar.bz2
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar.lz
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar.xz
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.tar.zst
android_bootable_recovery-197304aada4a2d1e42f201775cfaf1d619925817.zip
Diffstat (limited to '')
-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);