summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2api.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/include/2api.h')
-rw-r--r--firmware/2lib/include/2api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h
index 969be2fa..5c21989f 100644
--- a/firmware/2lib/include/2api.h
+++ b/firmware/2lib/include/2api.h
@@ -842,6 +842,14 @@ uint32_t vb2api_get_recovery_reason(struct vb2_context *ctx);
*/
uint32_t vb2api_get_locale_id(struct vb2_context *ctx);
+/**
+ * Whether phone recovery is enabled or not.
+ *
+ * @param ctx Vboot context
+ * @return 1 if enabled, 0 if disabled.
+ */
+int vb2api_phone_recovery_enabled(struct vb2_context *ctx);
+
/*****************************************************************************/
/* APIs provided by the caller to verified boot */