Merge "libhardware: boot_control: Add isSlotMarkedSuccesful() function."

am: e96eb0ddda

* commit 'e96eb0dddaa0c248e324a0e9f5dacc8eef646773':
  libhardware: boot_control: Add isSlotMarkedSuccesful() function.
This commit is contained in:
David Zeuthen 2015-12-09 21:08:30 +00:00 committed by android-build-merger
commit d8bc07cdce

View file

@ -117,7 +117,15 @@ typedef struct boot_control_module {
*/ */
const char* (*getSuffix)(struct boot_control_module *module, unsigned slot); 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; } boot_control_module_t;