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