diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-15 21:45:56 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-15 21:45:56 +0100 |
commit | eff5021eaa6dc69f65ea1a8abe8f3ab11ef5eb0a (patch) | |
tree | 014068ef94f3aae867e035c0c30ba5e721555c09 /src/libutil/compression.hh | |
parent | bfdacb712c9a95b5c61857b2b3a7dd3cfd0faf3b (diff) |
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.
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r-- | src/libutil/compression.hh | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |