summaryrefslogtreecommitdiff
path: root/firmware/include/gpt_misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/gpt_misc.h')
-rw-r--r--firmware/include/gpt_misc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/include/gpt_misc.h b/firmware/include/gpt_misc.h
index e5a366bb..49e13518 100644
--- a/firmware/include/gpt_misc.h
+++ b/firmware/include/gpt_misc.h
@@ -196,4 +196,13 @@ int GptUpdateKernelWithEntry(GptData *gpt, GptEntry *e, uint32_t update_type);
*/
int GptUpdateKernelEntry(GptData *gpt, uint32_t update_type);
+/* Getters and setters for partition attribute fields. */
+
+int GetEntrySuccessful(const GptEntry *e);
+int GetEntryPriority(const GptEntry *e);
+int GetEntryTries(const GptEntry *e);
+void SetEntrySuccessful(GptEntry *e, int successful);
+void SetEntryPriority(GptEntry *e, int priority);
+void SetEntryTries(GptEntry *e, int tries);
+
#endif /* VBOOT_REFERENCE_CGPT_MISC_H_ */