]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compression: Add o_stream_create_deflate()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 2 Jun 2025 15:19:10 +0000 (18:19 +0300)
committermarkus.valentin <markus.valentin@open-xchange.com>
Wed, 25 Jun 2025 07:44:27 +0000 (09:44 +0200)
src/lib-compression/ostream-zlib.c
src/lib-compression/ostream-zlib.h

index a82750b7724675c485568ae0c612f05d4e69afa4..1367713e68ad1c1c993d5e6bd7bd5c480176d63c 100644 (file)
@@ -441,3 +441,8 @@ struct ostream *o_stream_create_deflate_auto(struct ostream *output, struct even
 {
        return o_stream_create_zlib_auto(output, event, FALSE);
 }
+
+struct ostream *o_stream_create_deflate(struct ostream *output, int level)
+{
+       return o_stream_create_zlib(output, level, FALSE);
+}
index 9738e36cc0e7872810293657889e4baa628e9414..3516cc4fddd55ff8d33e2e67ad2685e3459668b3 100644 (file)
@@ -3,6 +3,7 @@
 
 struct ostream *o_stream_create_gz_auto(struct ostream *output, struct event *event);
 struct ostream *o_stream_create_deflate_auto(struct ostream *output, struct event *event);
+struct ostream *o_stream_create_deflate(struct ostream *output, int level);
 struct ostream *o_stream_create_bz2_auto(struct ostream *output, struct event *event);
 struct ostream *o_stream_create_lz4_auto(struct ostream *output, struct event *event);
 struct ostream *o_stream_create_zstd_auto(struct ostream *output, struct event *event);