/*
 * This file automatically generated by ext2_meth.sh.
 * To make changes, either change ext2_meth.sh and rerun it,
 * or make the changes to this file and delete ext2_meth.sh.
 */

#include <ext2fs/ext2_fs.h>

extern unsigned meth_name2id(char const *);
extern char const *meth_id2name(unsigned);

/* 
 * The ext2fs library private definition of the ext2 compression method names,
 * so we don't have to depend on the kernel's definition of them.
 * The idea is to provide a consistent compilation environment.
 */

#define EXT2FS_LZV1_METH 0
#define EXT2FS_AUTO_METH 1
#define EXT2FS_DEFER_METH 2
#define EXT2FS_NONE_METH EXT2_DEFER_METH
#define EXT2FS_NEVER_METH 3
#define EXT2FS_BZIP2_METH 4
#define EXT2FS_LZRW3A_METH 8
#define EXT2FS_LZO1X_1_METH 0x0a
#define EXT2FS_GZIP_1_METH 0x10
#define EXT2FS_GZIP_2_METH 0x11
#define EXT2FS_GZIP_3_METH 0x12
#define EXT2FS_GZIP_4_METH 0x13
#define EXT2FS_GZIP_5_METH 0x14
#define EXT2FS_GZIP_6_METH 0x15
#define EXT2FS_GZIP_7_METH 0x16
#define EXT2FS_GZIP_8_METH 0x17
#define EXT2FS_GZIP_9_METH 0x18

/*
 * Check for incompatibilities. 
 */

#ifdef EXT2_AUTO_METH
# if EXT2_AUTO_METH != EXT2FS_AUTO_METH
#  error "This kernel using a non-standard value of EXT2_AUTO_METH"
# endif
#endif

#ifdef EXT2_NEVER_METH
# if EXT2_NEVER_METH != EXT2FS_NEVER_METH
#  error "This kernel using a non-standard value of EXT2_NEVER_METH"
# endif
#endif

#ifdef EXT2_DEFER_METH
# if EXT2_DEFER_METH != EXT2FS_DEFER_METH
#  error "This kernel using a non-standard value of EXT2_DEFER_METH"
# endif
#endif

#ifdef EXT2_LZO1X_1_METH
# if EXT2_LZO1X_1_METH != EXT2FS_LZO1X_1_METH
#  error "This kernel using a non-standard value of EXT2_LZO1X_1_METH"
# endif
#endif

#ifdef EXT2_LZV1_METH
# if EXT2_LZV1_METH != EXT2FS_LZV1_METH
#  error "This kernel using a non-standard value of EXT2_LZV1_METH"
# endif
#endif

#ifdef EXT2_LZRW3A_METH
# if EXT2_LZRW3A_METH != EXT2FS_LZRW3A_METH
#  error "This kernel using a non-standard value of EXT2_LZRW3A_METH"
# endif
#endif

#ifdef EXT2_BZIP2_METH
# if EXT2_BZIP2_METH != EXT2FS_BZIP2_METH
#  error "This kernel using a non-standard value of EXT2_BZIP2_METH"
# endif
#endif

#ifdef EXT2_GZIP_1_METH
# if EXT2_GZIP_1_METH != EXT2FS_GZIP_1_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_1_METH"
# endif
#endif

#ifdef EXT2_GZIP_2_METH
# if EXT2_GZIP_2_METH != EXT2FS_GZIP_2_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_2_METH"
# endif
#endif

#ifdef EXT2_GZIP_3_METH
# if EXT2_GZIP_3_METH != EXT2FS_GZIP_3_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_3_METH"
# endif
#endif

#ifdef EXT2_GZIP_4_METH
# if EXT2_GZIP_4_METH != EXT2FS_GZIP_4_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_4_METH"
# endif
#endif

#ifdef EXT2_GZIP_5_METH
# if EXT2_GZIP_5_METH != EXT2FS_GZIP_5_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_5_METH"
# endif
#endif

#ifdef EXT2_GZIP_6_METH
# if EXT2_GZIP_6_METH != EXT2FS_GZIP_6_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_6_METH"
# endif
#endif

#ifdef EXT2_GZIP_7_METH
# if EXT2_GZIP_7_METH != EXT2FS_GZIP_7_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_7_METH"
# endif
#endif

#ifdef EXT2_GZIP_8_METH
# if EXT2_GZIP_8_METH != EXT2FS_GZIP_8_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_8_METH"
# endif
#endif

#ifdef EXT2_GZIP_9_METH
# if EXT2_GZIP_9_METH != EXT2FS_GZIP_9_METH
#  error "This kernel using a non-standard value of EXT2_GZIP_9_METH"
# endif
#endif
