1 /* This is an example import file, showing how to import the ext3
2 * superblock automatically from Linux header files.
4 * Use: bitstring-import-c ext3.c > ext3.bmpp
6 * Tip: Add the --debug flag to that command line to see what's going on.
7 * Also use bitstring-objinfo to examine the bmpp file.
10 /* These are required by Linux in order to get the little/big-endian
11 * notations present in the Linux kernel header files. Any other
12 * defines needed can go here.
15 #define __CHECK_ENDIAN__ 1
17 /* Include files necessary to get the structure(s) and constant(s) we're
21 #include <linux/magic.h>
22 #include <linux/ext2_fs.h>
24 /* This tells the importer program what structures and constants to import. */
25 //typedef struct ext3_super_block BITSTRING_IMPORT(ext3_super_block);
26 typedef struct ext2_super_block BITSTRING_IMPORT(ext3_super_block);
27 BITSTRING_CONSTANT_INT32 (ext3_super_magic, EXT3_SUPER_MAGIC);