From 2f22a35e843a24f0ad5f31644133d64648fe4efc Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 12 Aug 2019 18:25:52 +0200 Subject: Add deep-copy function to compressor interface Signed-off-by: David Oberhollenzer --- include/compress.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/compress.h b/include/compress.h index 7c90b2c..1dfba12 100644 --- a/include/compress.h +++ b/include/compress.h @@ -44,6 +44,10 @@ struct compressor_t { ssize_t (*do_block)(compressor_t *cmp, const uint8_t *in, size_t size, uint8_t *out, size_t outsize); + /* create another compressor just like this one, i.e. + with the exact same settings */ + compressor_t *(*create_copy)(compressor_t *cmp); + void (*destroy)(compressor_t *stream); }; -- cgit v1.2.3