summaryrefslogtreecommitdiff
path: root/libfec/include/fec/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'libfec/include/fec/io.h')
-rw-r--r--libfec/include/fec/io.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libfec/include/fec/io.h b/libfec/include/fec/io.h
index 5a9decb5..1a077f32 100644
--- a/libfec/include/fec/io.h
+++ b/libfec/include/fec/io.h
@@ -90,6 +90,8 @@ extern int fec_open(struct fec_handle **f, const char *path, int mode,
extern int fec_close(struct fec_handle *f);
+extern int fec_verity_set_status(struct fec_handle *f, bool enabled);
+
extern int fec_verity_get_metadata(struct fec_handle *f,
struct fec_verity_metadata *data);
@@ -177,6 +179,10 @@ namespace fec {
return get_ecc_metadata(data) && data.valid;
}
+ bool set_verity_status(bool enabled) {
+ return !fec_verity_set_status(handle_.get(), enabled);
+ }
+
private:
handle handle_;
};