diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-29 03:38:10 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-29 03:40:12 +0200 |
commit | cada7ca7d9386e68c38fc504c01bd2cac33dac44 (patch) | |
tree | 3fa6272a42a0504263d350ba82638579ad6d25ed /lib/sqfs/block_processor/internal.h | |
parent | 4b20b555bd9813ce85cacf78f0c194fa66ad5172 (diff) |
Block processor: turn internal functions into interface entry points
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/internal.h')
-rw-r--r-- | lib/sqfs/block_processor/internal.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index a71e6d7..61e13d7 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -65,20 +65,25 @@ struct sqfs_block_processor_t { size_t max_block_size; bool begin_called; -}; -SQFS_INTERNAL int process_completed_block(sqfs_block_processor_t *proc, - sqfs_block_t *block); + int (*process_completed_block)(sqfs_block_processor_t *proc, + sqfs_block_t *block); -SQFS_INTERNAL -int process_completed_fragment(sqfs_block_processor_t *proc, sqfs_block_t *frag, - sqfs_block_t **blk_out); + int (*process_completed_fragment)(sqfs_block_processor_t *proc, + sqfs_block_t *frag, + sqfs_block_t **blk_out); -SQFS_INTERNAL -int block_processor_do_block(sqfs_block_t *block, sqfs_compressor_t *cmp, + int (*process_block)(sqfs_block_t *block, sqfs_compressor_t *cmp, sqfs_u8 *scratch, size_t scratch_size); -SQFS_INTERNAL -int append_to_work_queue(sqfs_block_processor_t *proc, sqfs_block_t *block); + int (*append_to_work_queue)(sqfs_block_processor_t *proc, + sqfs_block_t *block); +}; + +SQFS_INTERNAL int block_processor_init(sqfs_block_processor_t *base, + size_t max_block_size, + sqfs_compressor_t *cmp, + sqfs_block_writer_t *wr, + sqfs_frag_table_t *tbl); #endif /* INTERNAL_H */ |