summaryrefslogtreecommitdiffstats
path: root/install/include/private/setup_commands.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-05-01 04:30:29 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-05-01 04:30:29 +0200
commit414051a96688f9a9b4115bf787c5d41c1c179abf (patch)
tree2e0f43553baf1ad50a222b113babbc5cad5371fe /install/include/private/setup_commands.h
parentSupport wipe command in rescue mode am: 5a1916b9be (diff)
parentMerge changes I2d42f55a,Ic1b5dbf7 am: b5fe2dd00c (diff)
downloadandroid_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar.gz
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar.bz2
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar.lz
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar.xz
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.tar.zst
android_bootable_recovery-414051a96688f9a9b4115bf787c5d41c1c179abf.zip
Diffstat (limited to 'install/include/private/setup_commands.h')
-rw-r--r--install/include/private/setup_commands.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/install/include/private/setup_commands.h b/install/include/private/setup_commands.h
index 7fdc741d6..dcff76112 100644
--- a/install/include/private/setup_commands.h
+++ b/install/include/private/setup_commands.h
@@ -27,13 +27,13 @@
// |zip| located at |package|. Stores 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 SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count,
- int status_fd, std::vector<std::string>* cmd);
+bool SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count,
+ int status_fd, std::vector<std::string>* cmd);
// Sets up the commands for an A/B update. Extracts the needed entries from the open zip archive
// |zip| located at |package|. Stores 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. Note that since this applies to the sideloading flow only, it takes one less
// parameter |retry_count| than the non-A/B version.
-int SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd,
- std::vector<std::string>* cmd);
+bool SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd,
+ std::vector<std::string>* cmd);