about summary refs log tree commit diff
path: root/src/libutil/compression.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r--src/libutil/compression.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh
index ed3c463865c1..eacf559d65e9 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);
 
 }