From 44c81eeffe9c8820b1009a7a5c728782aa5ebf40 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 3 Mar 2020 19:43:54 +0100 Subject: Add a generic copying mechanism to sqfs_object_t This patch adds a deep-copy callback to sqfs_object_t and removes the copying mechanism from sqfs_compressor_t. This is also interesting for other types. Signed-off-by: David Oberhollenzer --- include/sqfs/block_processor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sqfs/block_processor.h') diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h index 2ad12c0..d3b6e12 100644 --- a/include/sqfs/block_processor.h +++ b/include/sqfs/block_processor.h @@ -43,6 +43,8 @@ * Internally it takes care of partitioning data in the correct block sizes, * adding tail-ens to fragment blocks, compressing the data, deduplicating data * and finally writing it to disk. + * + * This object is not copyable, i.e. @ref sqfs_copy will always return NULL. */ /** -- cgit v1.2.3