diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-01 15:53:44 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-01 15:53:44 +0200 |
commit | a901d77efe116938bdaf5c0fc6075141ebb2bafc (patch) | |
tree | a6f97a891410c4159c80eafeb23b7d34c92f970f /include/sqfs/dir.h | |
parent | 9533dc84d7addf792db4f4702b6fc7d7ddd20e78 (diff) |
Break up squashfs.h into topic related headers
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/dir.h')
-rw-r--r-- | include/sqfs/dir.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/sqfs/dir.h b/include/sqfs/dir.h new file mode 100644 index 0000000..a1ca69c --- /dev/null +++ b/include/sqfs/dir.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * dir.h + * + * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at> + */ +#ifndef SQFS_DIR_H +#define SQFS_DIR_H + +#include "config.h" + +#include <stdint.h> + +#define SQFS_MAX_DIR_ENT 256 + +typedef struct { + uint32_t count; + uint32_t start_block; + uint32_t inode_number; +} sqfs_dir_header_t; + +typedef struct { + uint16_t offset; + int16_t inode_diff; + uint16_t type; + uint16_t size; + uint8_t name[]; +} sqfs_dir_entry_t; + +typedef struct { + uint32_t index; + uint32_t start_block; + uint32_t size; + uint8_t name[]; +} sqfs_dir_index_t; + +#endif /* SQFS_DIR_H */ |