From 9ac42164bc43bcdd47c0a8e5e59c662b2a136659 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 14 Feb 2020 17:56:40 +0100 Subject: Cleanup: block processor: move init/cleanup functions into implemenations Again, the generic init/cleanup functions do way too many things that are specific to the thread pool implementation. Thanks to the splitting up of the block processor, they also have become quite trivial. This commit moves those functions into their respective implementations, allowing even further simplificiation. Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/internal.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/sqfs/block_processor/internal.h') diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index a764b2f..45db014 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -109,16 +109,6 @@ SQFS_INTERNAL int process_completed_fragment(sqfs_block_processor_t *proc, sqfs_block_t *frag, sqfs_block_t **blk_out); -SQFS_INTERNAL void free_blk_list(sqfs_block_t *list); - -SQFS_INTERNAL -int block_processor_init(sqfs_block_processor_t *proc, size_t max_block_size, - sqfs_compressor_t *cmp, unsigned int num_workers, - size_t max_backlog, sqfs_block_writer_t *wr, - sqfs_frag_table_t *tbl); - -SQFS_INTERNAL void block_processor_cleanup(sqfs_block_processor_t *proc); - SQFS_INTERNAL int block_processor_do_block(sqfs_block_t *block, sqfs_compressor_t *cmp, sqfs_u8 *scratch, size_t scratch_size); -- cgit v1.2.3