summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bindings/rust/libflashrom/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/rust/libflashrom/src/lib.rs b/bindings/rust/libflashrom/src/lib.rs
index 39e76acbe..95fde56e9 100644
--- a/bindings/rust/libflashrom/src/lib.rs
+++ b/bindings/rust/libflashrom/src/lib.rs
@@ -312,6 +312,7 @@ pub enum WPError {
WpErrRangeUnsupported,
WpErrModeUnsupported,
WpErrRangeListUnavailable,
+ WpErrUnsupportedState,
WpErrUnknown(libflashrom_sys::flashrom_wp_result),
}
@@ -341,6 +342,9 @@ impl From<libflashrom_sys::flashrom_wp_result> for WPError {
libflashrom_sys::flashrom_wp_result::FLASHROM_WP_ERR_RANGE_LIST_UNAVAILABLE => {
WPError::WpErrRangeListUnavailable
}
+ libflashrom_sys::flashrom_wp_result::FLASHROM_WP_ERR_UNSUPPORTED_STATE => {
+ WPError::WpErrUnsupportedState
+ }
_ => WPError::WpErrUnknown(e), // this could also be a panic
}
}