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 /include/sqfs/block.h | |
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 'include/sqfs/block.h')
-rw-r--r-- | include/sqfs/block.h | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/include/sqfs/block.h b/include/sqfs/block.h index 1098c96..30fcc1d 100644 --- a/include/sqfs/block.h +++ b/include/sqfs/block.h @@ -25,8 +25,7 @@ /** * @file block.h * - * @brief Contains on-disk data structures for data block management, - * helper macros and the higher level @ref sqfs_block_t structure. + * @brief Contains on-disk data structures for data block management. */ #define SQFS_META_BLOCK_SIZE 8192 @@ -125,56 +124,4 @@ typedef enum { SQFS_BLK_USER_SETTABLE_FLAGS = 0x0007, } E_SQFS_BLK_FLAGS; -/** - * @struct sqfs_block_t - * - * @brief Encapsulates a chunk of data to be processed by the block processor. - */ -struct sqfs_block_t { - /** - * @brief Used internally, existing value is ignored and overwritten - * when enqueueing a block. - */ - sqfs_block_t *next; - - /** - * @brief Used internally, existing value is ignored and overwritten - * when enqueueing a block. - */ - sqfs_u32 sequence_number; - - /** - * @brief Size of the data area. - */ - sqfs_u32 size; - - /** - * @brief Checksum of the input data. - */ - sqfs_u32 checksum; - - /** - * @brief Data block index within the inode. - */ - sqfs_u32 index; - - /** - * @brief The squashfs inode related to this block. - */ - sqfs_inode_generic_t *inode; - - /** - * @brief User settable flag field. - * - * A combination of @ref E_SQFS_BLK_FLAGS and custom, user - * settable flags. - */ - sqfs_u32 flags; - - /** - * @brief Raw data to be processed. - */ - sqfs_u8 data[]; -}; - #endif /* SQFS_BLOCK_H */ |