summaryrefslogtreecommitdiff
path: root/lib/e2p/e2p.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e2p/e2p.h')
-rw-r--r--lib/e2p/e2p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/e2p/e2p.h b/lib/e2p/e2p.h
index 5d9131fd..06e2120d 100644
--- a/lib/e2p/e2p.h
+++ b/lib/e2p/e2p.h
@@ -7,7 +7,9 @@
#define E2P_FEATURE_COMPAT 0
#define E2P_FEATURE_INCOMPAT 1
#define E2P_FEATURE_RO_INCOMPAT 2
+#define E2P_FEATURE_TYPE_MASK 0x03
+#define E2P_FEATURE_NEGATE_FLAG 0x80
/* `options' for print_flags() */
@@ -34,6 +36,9 @@ int setversion (int fd, unsigned long version);
const char *e2p_feature2string(int compat, unsigned int mask);
int e2p_string2feature(char *string, int *compat, unsigned int *mask);
int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array);
+int e2p_edit_feature2(const char *str, __u32 *compat_array, __u32 *ok_array,
+ __u32 *clear_ok_array, int *type_err,
+ unsigned int *mask_err);
int e2p_is_null_uuid(void *uu);
void e2p_uuid_to_str(void *uu, char *out);