diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-12 00:23:09 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-12 00:23:09 +0100 |
commit | ec7a522a520017327dd73b4d8e3787016ee1a31e (patch) | |
tree | 8763825a8af669dfb8cdfcd21b18e749de0616ca /lib/sqfs | |
parent | dd574620f888a50b84b5acb029e9a9dac212da64 (diff) |
Cleanup: Move sqfs_block_t to block processor internals
It was basically built around the block processor and exposed way too
many internals. Removing it from other places was mostly trivial. This
commit completely removes it from the public API and even most of the
libsquashfs internals.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r-- | lib/sqfs/block_processor/internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index 847b2c6..b3d76ba 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -34,6 +34,21 @@ typedef struct compress_worker_t compress_worker_t; +typedef struct sqfs_block_t { + struct sqfs_block_t *next; + sqfs_inode_generic_t *inode; + + sqfs_u32 sequence_number; + sqfs_u32 flags; + sqfs_u32 size; + sqfs_u32 checksum; + + /* Data block index within the inode or fragment block index. */ + sqfs_u32 index; + + sqfs_u8 data[]; +} sqfs_block_t; + struct sqfs_block_processor_t { /* synchronization primitives */ #ifdef WITH_PTHREAD |