From eff5021eaa6dc69f65ea1a8abe8f3ab11ef5eb0a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Feb 2016 21:45:56 +0100 Subject: Add xz compression function This is used by the Hydra queue runner, but since it may also be useful for the C++ rewrite of nix-push, I'm putting it here. --- src/libutil/compression.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libutil/compression.hh') diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh index 962ce5ac7..eb1697fc4 100644 --- a/src/libutil/compression.hh +++ b/src/libutil/compression.hh @@ -4,6 +4,8 @@ namespace nix { +std::string compressXZ(const std::string & in); + std::string decompressXZ(const std::string & in); } -- cgit v1.2.3