Whamcloud - gitweb
libe2p: Declare prototypes for the journal feature name functions in e2p.h
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 18:35:45 +0000 (14:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 18:41:12 +0000 (14:41 -0400)
Define the prototypes for e2p_jrnl_feature2string() and
e2p_jrnl_string2feature() in e2p.h.  This promotes better error
checking and avoids warnings when compiling the library and programs
that call these functions.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/e2p/e2p.h

index 98c97db..d125e14 100644 (file)
@@ -37,7 +37,9 @@ int setflags (int fd, unsigned long flags);
 int setversion (int fd, unsigned long version);
 
 const char *e2p_feature2string(int compat, unsigned int mask);
+const char *e2p_jrnl_feature2string(int compat, unsigned int mask);
 int e2p_string2feature(char *string, int *compat, unsigned int *mask);
+int e2p_jrnl_string2feature(char *string, int *compat_type, 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,