From 9a1b912929527accc88b9bdb48c63a5855f64c36 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Sep 2016 12:39:38 +0100 Subject: [Feature] Preserve decompression context between tasks --- src/rspamd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/rspamd.h') diff --git a/src/rspamd.h b/src/rspamd.h index 545681bf5..bb39f3819 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -300,11 +300,15 @@ struct controller_session { }; struct zstd_dictionary { - const void *dict; + void *dict; gsize size; guint id; }; + +struct ZSTD_CStream_s; +struct ZSTD_DStream_s; + struct rspamd_external_libs_ctx { magic_t libmagic; radix_compressed_t **local_addrs; @@ -313,6 +317,8 @@ struct rspamd_external_libs_ctx { SSL_CTX *ssl_ctx; struct zstd_dictionary *in_dict; struct zstd_dictionary *out_dict; + struct ZSTD_CStream_s *out_zstream; + struct ZSTD_DStream_s *in_zstream; ref_entry_t ref; }; -- cgit v1.2.3