diff options
author | Tao Bao <tbao@google.com> | 2017-05-09 02:20:30 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-09 02:20:30 +0200 |
commit | f49c57643d83e7ba4d48720034e57a1af252b346 (patch) | |
tree | 8d698a607844adaf00f0bf6859b67dd45ada9ed4 /private/install.h | |
parent | Merge "recovery: update mkfs.f2fs args to match f2fs-tools 1.8.0" am: f347c1abca (diff) | |
parent | Merge "Add a binary path param to update_binary_command()." (diff) | |
download | android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar.gz android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar.bz2 android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar.lz android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar.xz android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.tar.zst android_bootable_recovery-f49c57643d83e7ba4d48720034e57a1af252b346.zip |
Diffstat (limited to 'private/install.h')
-rw-r--r-- | private/install.h | 8 |
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); |