20 #ifndef SQFS_FRAG_TABLE_H 21 #define SQFS_FRAG_TABLE_H 120 sqfs_u32 size, sqfs_u32 *index);
136 sqfs_u64 location, sqfs_u32 size);
SQFS_API int sqfs_frag_table_write(sqfs_frag_table_t *tbl, sqfs_file_t *file, sqfs_super_t *super, sqfs_compressor_t *cmp)
Write a fragment table to a SquashFS image.
Abstracts reading, writing and management of the fragment table.
SQFS_API int sqfs_frag_table_read(sqfs_frag_table_t *tbl, sqfs_file_t *file, const sqfs_super_t *super, sqfs_compressor_t *cmp)
Load a fragment table from a SquashFS image.
Encapsultes a compressor with a simple interface to compress or extract chunks of data...
SQFS_API sqfs_frag_table_t * sqfs_frag_table_create(sqfs_u32 flags)
Create a fragment table.
The SquashFS super block, located at the beginning of the file system to describe the layout of the f...
Abstracts file I/O to make it easy to embedd SquashFS.
Data structure that makes up the fragment table entries.
SQFS_API int sqfs_frag_table_lookup(sqfs_frag_table_t *tbl, sqfs_u32 index, sqfs_fragment_t *out)
Resolve a fragment block index to its description.
SQFS_API int sqfs_frag_table_append(sqfs_frag_table_t *tbl, sqfs_u64 location, sqfs_u32 size, sqfs_u32 *index)
Append a table entry to a fragment table.
SQFS_API size_t sqfs_frag_table_get_size(sqfs_frag_table_t *tbl)
Get the number of entries stored in a fragment table.
Includes forward declarations of data structures, macros and integer types.
SQFS_API int sqfs_frag_table_set(sqfs_frag_table_t *tbl, sqfs_u32 index, sqfs_u64 location, sqfs_u32 size)
Modify an existing entry in a fragment table.