diff options
author | David Zeuthen <zeuthen@google.com> | 2015-12-09 20:58:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-12-09 20:58:58 +0000 |
commit | e96eb0dddaa0c248e324a0e9f5dacc8eef646773 (patch) | |
tree | 7b28ead501474855f10b4547ce93a262489fe2a1 | |
parent | f73b52393ca097292cb89c5c1052c36e98acbc03 (diff) | |
parent | 72c88c915d957bf2eba73950e7f0407b220d1ef4 (diff) | |
download | libhardware-brillo-m8-release.tar.gz |
Merge "libhardware: boot_control: Add isSlotMarkedSuccesful() function."brillo-m8-releasebrillo-m8-dev
-rw-r--r-- | include/hardware/boot_control.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware/boot_control.h b/include/hardware/boot_control.h index 7a6a8498..36a867da 100644 --- a/include/hardware/boot_control.h +++ b/include/hardware/boot_control.h @@ -117,7 +117,15 @@ typedef struct boot_control_module { */ const char* (*getSuffix)(struct boot_control_module *module, unsigned slot); - void* reserved[32]; + /* + * (*isSlotMarkedSucessful)() returns if the slot passed in parameter has + * been marked as successful using markBootSuccessful. + * Returns 1 if the slot has been marked as successful, 0 if it's + * not the case, and -errno on error. + */ + int (*isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot); + + void* reserved[31]; } boot_control_module_t; |