From 0d4a10e910e1916a6f36cb9af6b68817172b51a9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 May 2016 15:46:25 +0200 Subject: Do compression in a sink --- src/libutil/compression.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libutil/compression.hh') diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh index ed3c46386..eacf559d6 100644 --- a/src/libutil/compression.hh +++ b/src/libutil/compression.hh @@ -2,6 +2,7 @@ #include "ref.hh" #include "types.hh" +#include "serialise.hh" #include @@ -11,6 +12,13 @@ ref compress(const std::string & method, const std::string & in); ref decompress(const std::string & method, const std::string & in); +struct CompressionSink : BufferedSink +{ + virtual void finish() = 0; +}; + +ref makeCompressionSink(const std::string & method, Sink & nextSink); + MakeError(UnknownCompressionMethod, Error); } -- cgit v1.2.3