20 #ifndef SQFS_BLOCK_WRITER_H 21 #define SQFS_BLOCK_WRITER_H 77 sqfs_u32 size, sqfs_u32 checksum,
78 sqfs_u32 flags,
const sqfs_u8 *data,
A combination of all valid flags.
Abstracts file I/O to make it easy to embedd SquashFS.
sqfs_u64(* get_block_count)(const sqfs_block_writer_t *wr)
Get the number of blocks actually written to disk.
If set, only compare checksums when deduplicating blocks.
Base interface for all libsquashfs in-memory data structures.
SQFS_BLOCK_WRITER_FLAGS
Flags that can be passed to sqfs_block_writer_create.
int(* write_data_block)(sqfs_block_writer_t *wr, void *user, sqfs_u32 size, sqfs_u32 checksum, sqfs_u32 flags, const sqfs_u8 *data, sqfs_u64 *location)
Submit a data block to a block writer.
Abstracts writing and deduplicating of data and fragment blocks.
SQFS_API sqfs_block_writer_t * sqfs_block_writer_create(sqfs_file_t *file, size_t devblksz, sqfs_u32 flags)
Create an instance of a default block writer implementation.
Includes forward declarations of data structures, macros and integer types.