diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T15·02+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-29T15·02+0200 |
commit | 5acb6914020a94be8468d7670b564388c59794ee (patch) | |
tree | 0ba3c95263577cab2cd5a69810c755485ef57a4c /src/libutil/compression.hh | |
parent | 8e065c6b3e36e4cd113769575c0045b6d42357ef (diff) |
BinaryCacheStore: Support "none" compression method
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r-- | src/libutil/compression.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh index 79a796db7756..33c465df8455 100644 --- a/src/libutil/compression.hh +++ b/src/libutil/compression.hh @@ -1,13 +1,16 @@ #pragma once #include "ref.hh" +#include "types.hh" #include <string> namespace nix { -std::string compressXZ(const std::string & in); +ref<std::string> compress(const std::string & method, ref<std::string> in); -ref<std::string> decompressXZ(const std::string & in); +ref<std::string> decompress(const std::string & method, ref<std::string> in); + +MakeError(UnknownCompressionMethod, Error); } |