summaryrefslogtreecommitdiff
path: root/include/compress.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-12 18:25:52 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-16 16:47:24 +0200
commit2f22a35e843a24f0ad5f31644133d64648fe4efc (patch)
tree7175b11355ea988c022d7e87b27f6676c5d2d181 /include/compress.h
parent008990af4d8b0cfa03fcb2c5fa2ba461dad71b18 (diff)
Add deep-copy function to compressor interface
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/compress.h')
-rw-r--r--include/compress.h4
1 files changed, 4 insertions, 0 deletions
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);
};