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,
SQFS_BLOCK_WRITER_FLAGS
Flags that can be passed to sqfs_block_writer_create.
@ SQFS_BLOCK_WRITER_HASH_COMPARE_ONLY
If set, only compare checksums when deduplicating blocks.
@ SQFS_BLOCK_WRITER_ALL_FLAGS
A combination of all valid flags.
Includes forward declarations of data structures, macros and integer types.
Abstracts writing and deduplicating of data and fragment blocks.
sqfs_u64(* get_block_count)(const sqfs_block_writer_t *wr)
Get the number of blocks actually written to disk.
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.
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 file I/O to make it easy to embedd SquashFS.
Base interface for all libsquashfs in-memory data structures.