summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <zeuthen@google.com>2015-12-09 15:01:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-12-09 15:01:18 +0000
commitf73b52393ca097292cb89c5c1052c36e98acbc03 (patch)
tree95b2980b7fa3d2e3d04556cb84382308993a4c83
parent7adb2d457c368a94c6a8e8b1e24926270421c5b8 (diff)
parent45131be33837055f94e7d9ac8dc2e61c0380dc4e (diff)
downloadlibhardware-f73b52393ca097292cb89c5c1052c36e98acbc03.tar.gz
Merge "libhardware: boot_control: Clarify documentation for isSlotBootable()."
-rw-r--r--include/hardware/boot_control.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hardware/boot_control.h b/include/hardware/boot_control.h
index 62d6918e..7a6a8498 100644
--- a/include/hardware/boot_control.h
+++ b/include/hardware/boot_control.h
@@ -101,10 +101,11 @@ typedef struct boot_control_module {
int (*setSlotAsUnbootable)(struct boot_control_module *module, unsigned slot);
/*
- * (*isSlotBootable)() returns if the slot passed in parameter has
- * booted successfully in the past.
- * Returns 1 if the slot has booted successfully, 0 if it has not,
- * and -errno on error.
+ * (*isSlotBootable)() returns if the slot passed in parameter is
+ * bootable. Note that slots can be made unbootable by both the
+ * bootloader and by the OS using setSlotAsUnbootable.
+ * Returns 1 if the slot is bootable, 0 if it's not, and -errno on
+ * error.
*/
int (*isSlotBootable)(struct boot_control_module *module, unsigned slot);