aboutsummaryrefslogtreecommitdiffstats
path: root/include/writeprotect.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/writeprotect.h')
-rw-r--r--include/writeprotect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/writeprotect.h b/include/writeprotect.h
index e27403dc..12926c4d 100644
--- a/include/writeprotect.h
+++ b/include/writeprotect.h
@@ -86,4 +86,7 @@ enum flashrom_wp_result wp_read_cfg(struct flashrom_wp_cfg *, struct flashrom_fl
/* Get a list of protection ranges supported by the chip */
enum flashrom_wp_result wp_get_available_ranges(struct flashrom_wp_ranges **, struct flashrom_flashctx *);
+/* Checks if writeprotect functions can be used with the current flash/programmer */
+bool wp_operations_available(struct flashrom_flashctx *);
+
#endif /* !__WRITEPROTECT_H__ */