20#ifndef SQFS_DIR_WRITER_H
21#define SQFS_DIR_WRITER_H
86 SQFS_DIR_WRITER_CREATE_ALL_FLAGS = 0x01
139 sqfs_u32 inode_num, sqfs_u64 inode_ref,
246 sqfs_u32 xattr, sqfs_u32 parent_ino);
280 sqfs_u32 root_inode_num,
281 sqfs_u64 root_inode_ref,
SQFS_DIR_WRITER_CREATE_FLAGS
Flags that can be set for sqfs_dir_writer_create.
@ SQFS_DIR_WRITER_CREATE_EXPORT_TABLE
Record all inode locations to create an export table.
Includes forward declarations of data structures, macros and integer types.
Encapsultes a compressor with a simple interface to compress or extract chunks of data.
Abstracts generating of directory entries.
SQFS_API int sqfs_dir_writer_add_entry(sqfs_dir_writer_t *writer, const char *name, sqfs_u32 inode_num, sqfs_u64 inode_ref, sqfs_u16 mode)
Add add a directory entry.
SQFS_API int sqfs_dir_writer_write_export_table(sqfs_dir_writer_t *writer, sqfs_file_t *file, sqfs_compressor_t *cmp, sqfs_u32 root_inode_num, sqfs_u64 root_inode_ref, sqfs_super_t *super)
Write an export table to a SquashFS image.
SQFS_API size_t sqfs_dir_writer_get_size(const sqfs_dir_writer_t *writer)
Get the total, uncompressed size of the last written directory in bytes.
SQFS_API int sqfs_dir_writer_begin(sqfs_dir_writer_t *writer, sqfs_u32 flags)
Begin writing a directory, i.e. reset and initialize all internal state neccessary.
SQFS_API int sqfs_dir_writer_end(sqfs_dir_writer_t *writer)
Finish writing a directory listing and write everything out to the meta data writer.
SQFS_API size_t sqfs_dir_writer_get_entry_count(const sqfs_dir_writer_t *writer)
Get the numer of entries written to the last directory.
SQFS_API sqfs_u64 sqfs_dir_writer_get_dir_reference(const sqfs_dir_writer_t *writer)
Get the location of the last written directory.
SQFS_API size_t sqfs_dir_writer_get_index_size(const sqfs_dir_writer_t *writer)
Get the size of the index of the last written directory.
SQFS_API sqfs_inode_generic_t * sqfs_dir_writer_create_inode(const sqfs_dir_writer_t *writer, size_t hlinks, sqfs_u32 xattr, sqfs_u32 parent_ino)
Helper function for creating an inode from the last directory.
SQFS_API sqfs_dir_writer_t * sqfs_dir_writer_create(sqfs_meta_writer_t *dm, sqfs_u32 flags)
Create a directory writer.
Abstracts file I/O to make it easy to embedd SquashFS.
A generic inode structure that combines all others and provides additional information.
The SquashFS super block, located at the beginning of the file system to describe the layout of the f...