summaryrefslogtreecommitdiffstats
path: root/bootloader_message/bootloader_message.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2019-05-01 22:13:58 +0200
committerYifan Hong <elsk@google.com>2019-05-03 00:50:15 +0200
commitc784ce50e8c10eaf70e1f97e24e8324aef45faf5 (patch)
tree323ee0a251af20592aafcc3a1d31ff2fda93b063 /bootloader_message/bootloader_message.cpp
parentMerge changes I2d42f55a,Ic1b5dbf7 (diff)
downloadandroid_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar.gz
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar.bz2
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar.lz
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar.xz
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.tar.zst
android_bootable_recovery-c784ce50e8c10eaf70e1f97e24e8324aef45faf5.zip
Diffstat (limited to 'bootloader_message/bootloader_message.cpp')
-rw-r--r--bootloader_message/bootloader_message.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index 8c1d63bdd..0ebc04a30 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -168,6 +168,14 @@ bool write_bootloader_message(const std::vector<std::string>& options, std::stri
return write_bootloader_message(boot, err);
}
+bool write_bootloader_message_to(const std::vector<std::string>& options,
+ const std::string& misc_blk_device, std::string* err) {
+ bootloader_message boot = {};
+ update_bootloader_message_in_struct(&boot, options);
+
+ return write_bootloader_message_to(boot, misc_blk_device, err);
+}
+
bool update_bootloader_message(const std::vector<std::string>& options, std::string* err) {
bootloader_message boot;
if (!read_bootloader_message(&boot, err)) {