20#ifndef SQFS_XATTR_READER_H
21#define SQFS_XATTR_READER_H
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...
On-disk data structure that holds a single xattr key.
On-disk data structure that describes a set of key-value pairs.
Abstracts read access to extended attributes in a SquashFS filesystem.
SQFS_API int sqfs_xattr_reader_read_value(sqfs_xattr_reader_t *xr, const sqfs_xattr_entry_t *key, sqfs_xattr_value_t **val_out)
Read the xattr value belonging to the last read key.
SQFS_API int sqfs_xattr_reader_get_desc(sqfs_xattr_reader_t *xr, sqfs_u32 idx, sqfs_xattr_id_t *desc)
Resolve an xattr index from an inode to an xattr description.
SQFS_API sqfs_xattr_reader_t * sqfs_xattr_reader_create(sqfs_u32 flags)
Create an xattr reader.
SQFS_API int sqfs_xattr_reader_read_key(sqfs_xattr_reader_t *xr, sqfs_xattr_entry_t **key_out)
Read the next xattr key.
SQFS_API int sqfs_xattr_reader_seek_kv(sqfs_xattr_reader_t *xr, const sqfs_xattr_id_t *desc)
Resolve an xattr index from an inode to an xattr description.
SQFS_API int sqfs_xattr_reader_load(sqfs_xattr_reader_t *xr, const sqfs_super_t *super, sqfs_file_t *file, sqfs_compressor_t *cmp)
Load the locations of the xattr meta data blocks into memory.
On-disk data structure that holds a single xattr value.