libhardware: boot_control: Add isSlotMarkedSuccesful() function.
This is useful in cases where the OS need to do some work (verification,
JIT'ing etc.) before it's ready to mark a slot as successful.
Change-Id: I114cfb7cf89ee227b186c56347446c850986d0b1
diff --git a/include/hardware/boot_control.h b/include/hardware/boot_control.h
index 7a6a849..36a867d 100644
--- a/include/hardware/boot_control.h
+++ b/include/hardware/boot_control.h
@@ -117,7 +117,15 @@
*/
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;