diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-01-16 00:23:20 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-01-19 06:01:51 +0100 |
commit | 8026849fda277f54a2a3e4fa5cf5d183cbc84bef (patch) | |
tree | f000e36ec9caab771888ad03338094a92e2e958b /lib/sqfs/block_processor/internal.h | |
parent | c1a5ea0d4dceeb9354ff792fc510caa854223463 (diff) |
libsqfs: Implement exact matching of fragments
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index efea3d4..4699dc6 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -83,6 +83,10 @@ struct sqfs_block_processor_t { sqfs_file_t *file; sqfs_compressor_t *uncmp; + sqfs_block_t *frag_cmp_current; + sqfs_u8 *frag_buffer; + sqfs_u32 buffered_index; + sqfs_u32 buffered_blk_size; int (*process_completed_block)(sqfs_block_processor_t *proc, sqfs_block_t *block); @@ -94,6 +98,10 @@ struct sqfs_block_processor_t { int (*process_block)(sqfs_block_t *block, sqfs_compressor_t *cmp, sqfs_u8 *scratch, size_t scratch_size); + int (*compare_frag_in_flight)(sqfs_block_processor_t *proc, + sqfs_block_t *frag, sqfs_u32 index, + sqfs_u32 offset); + int (*append_to_work_queue)(sqfs_block_processor_t *proc, sqfs_block_t *block); |