diff options
Diffstat (limited to 'mkfs/mkfs.h')
-rw-r--r-- | mkfs/mkfs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mkfs/mkfs.h b/mkfs/mkfs.h index c73b74e..15d349e 100644 --- a/mkfs/mkfs.h +++ b/mkfs/mkfs.h @@ -2,6 +2,7 @@ #ifndef MKFS_H #define MKFS_H +#include "meta_writer.h" #include "squashfs.h" #include "compress.h" #include "id_table.h" @@ -18,6 +19,18 @@ #include <errno.h> typedef struct { + tree_node_t *node; + uint32_t block; + uint32_t offset; +} idx_ref_t; + +typedef struct { + size_t num_nodes; + size_t max_nodes; + idx_ref_t idx_nodes[]; +} dir_index_t; + +typedef struct { unsigned int def_uid; unsigned int def_gid; unsigned int def_mode; @@ -65,4 +78,6 @@ int sqfs_write_inodes(sqfs_info_t *info); int write_xattr(sqfs_info_t *info); +int write_dir(meta_writer_t *dm, dir_info_t *dir, dir_index_t **index); + #endif /* MKFS_H */ |