123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- typedef uint32_t u32_be_t;
- struct romfs_superblock {
- u32_be_t magic1;
- u32_be_t magic2;
- u32_be_t size;
- u32_be_t checksum;
- };
- struct romfs_i {
- u32_be_t next;
- u32_be_t dir_start;
- u32_be_t size;
- u32_be_t checksum;
- };
- enum {
- RFST_HARDLINK = 0,
- RFST_DIR = 1,
- RFST_SYMLINK = 3,
- };
- typedef const struct romfs_i *romfs_inode_t;
- typedef const struct romfs_superblock *romfs_t;
- const void *
- romfs_get_info(romfs_t romfs, const char *path, size_t *len);
- size_t
- romfs_mount_check(romfs_t romfs);
|