20#ifndef SQFS_XATRR_WRITER_H
21#define SQFS_XATRR_WRITER_H
98 const void *value,
size_t size);
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 file I/O to make it easy to embedd SquashFS.
The SquashFS super block, located at the beginning of the file system to describe the layout of the f...
Abstracts writing of extended attributes to a SquashFS filesystem.
SQFS_API int sqfs_xattr_writer_begin(sqfs_xattr_writer_t *xwr, sqfs_u32 flags)
Begin recording a block of key-value pairs.
SQFS_API sqfs_xattr_writer_t * sqfs_xattr_writer_create(sqfs_u32 flags)
Create an xattr writer instance.
SQFS_API int sqfs_xattr_writer_end(sqfs_xattr_writer_t *xwr, sqfs_u32 *out)
Finish a generating a key-value block.
SQFS_API int sqfs_xattr_writer_flush(const sqfs_xattr_writer_t *xwr, sqfs_file_t *file, sqfs_super_t *super, sqfs_compressor_t *cmp)
Write all recorded key-value pairs to disk.
SQFS_API int sqfs_xattr_writer_add(sqfs_xattr_writer_t *xwr, const char *key, const void *value, size_t size)
Add a key-value pair to the current block.