diff options
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r-- | src/libutil/compression.hh | 8 |
1 files changed, 8 insertions, 0 deletions
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 <string> @@ -11,6 +12,13 @@ ref<std::string> compress(const std::string & method, const std::string & in); ref<std::string> decompress(const std::string & method, const std::string & in); +struct CompressionSink : BufferedSink +{ + virtual void finish() = 0; +}; + +ref<CompressionSink> makeCompressionSink(const std::string & method, Sink & nextSink); + MakeError(UnknownCompressionMethod, Error); } |