aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/compress/ostream_compressor.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-14 20:25:10 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-16 09:34:35 +0200
commit15431d4fd8de67a03af4ee9cc8e774e1750e9da2 (patch)
treef5386db24f3901e86d3aaae10042d4f9181a6b32 /lib/fstream/compress/ostream_compressor.c
parent76b06f71078e2eea7def3d1c15cdb103dec785ed (diff)
Add zstd stream compressor implementation to libfstream
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/compress/ostream_compressor.c')
-rw-r--r--lib/fstream/compress/ostream_compressor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fstream/compress/ostream_compressor.c b/lib/fstream/compress/ostream_compressor.c
index 5137f1d..d1d55e1 100644
--- a/lib/fstream/compress/ostream_compressor.c
+++ b/lib/fstream/compress/ostream_compressor.c
@@ -77,6 +77,11 @@ ostream_t *ostream_compressor_create(ostream_t *strm, int comp_id)
comp = ostream_xz_create(strm->get_filename(strm));
#endif
break;
+ case FSTREAM_COMPRESSOR_ZSTD:
+#ifdef WITH_ZSTD
+ comp = ostream_zstd_create(strm->get_filename(strm));
+#endif
+ break;
default:
break;
}