1 /* This is an example import file, showing how to import the ext3
2 * superblock automatically from Linux header files.
4 * Use: bitmatch-import-c ext3.c > ext3_stubs.ml
6 * Tip: Add the --debug flag to that command line to see what's going on.
9 /* These are required by Linux in order to get the little/big-endian
10 * notations present in the Linux kernel header files. Any other
11 * defines needed can go here.
14 #define __CHECK_ENDIAN__ 1
16 /* Include files necessary to get the structure(s) and constant(s) we're
19 #include <linux/magic.h>
20 #include <linux/ext3_fs.h>
22 /* This tells the importer program what structures and constants to import. */
23 typedef struct ext3_super_block BITMATCH_IMPORT(ext3_super_block);
24 BITMATCH_CONSTANT_INT32 (ext3_super_magic, EXT3_SUPER_MAGIC);