summaryrefslogtreecommitdiffstats
path: root/private/install.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-09 02:28:00 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-05-09 02:28:00 +0200
commit4deb2fb1bdc0b07c42e394dcd5ffae96c718e430 (patch)
treeae1bbdb6129ad55fb984fde7bd1f0bb3f445d39e /private/install.h
parentMerge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" am: f347c1abca am: d6f506e783 am: 5975ee6a46 (diff)
parentMerge "Add a binary path param to update_binary_command()." am: 197304aada am: f648b5c9fc (diff)
downloadandroid_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar.gz
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar.bz2
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar.lz
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar.xz
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.tar.zst
android_bootable_recovery-4deb2fb1bdc0b07c42e394dcd5ffae96c718e430.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);