diff options
author | David Anderson <dvander@google.com> | 2019-10-10 21:31:35 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-10-10 21:31:35 +0200 |
commit | 1cde53c252a172c635692d546c63e528b681c473 (patch) | |
tree | 83d886d5d8dc845858a8dd07c5c045a20ce9333e /boot_control/include/libboot_control | |
parent | Merge "Update OWNERS." (diff) | |
parent | Merge "Add IBootControl 1.1 support to libboot_control." (diff) | |
download | android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar.gz android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar.bz2 android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar.lz android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar.xz android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.tar.zst android_bootable_recovery-1cde53c252a172c635692d546c63e528b681c473.zip |
Diffstat (limited to 'boot_control/include/libboot_control')
-rw-r--r-- | boot_control/include/libboot_control/libboot_control.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/boot_control/include/libboot_control/libboot_control.h b/boot_control/include/libboot_control/libboot_control.h index 6582d0244..34a9affe1 100644 --- a/boot_control/include/libboot_control/libboot_control.h +++ b/boot_control/include/libboot_control/libboot_control.h @@ -18,11 +18,15 @@ #include <string> +#include <android/hardware/boot/1.1/IBootControl.h> + namespace android { namespace bootable { // Helper library to implement the IBootControl HAL using the misc partition. class BootControl { + using MergeStatus = ::android::hardware::boot::V1_1::MergeStatus; + public: bool Init(); unsigned int GetNumberSlots(); @@ -34,6 +38,10 @@ class BootControl { bool IsSlotBootable(unsigned int slot); const char* GetSuffix(unsigned int slot); bool IsSlotMarkedSuccessful(unsigned int slot); + bool SetSnapshotMergeStatus(MergeStatus status); + MergeStatus GetSnapshotMergeStatus(); + + bool IsValidSlot(unsigned int slot); const std::string& misc_device() const { return misc_device_; |