aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/compression.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-13 10:45:44 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-13 10:45:44 +0200
commitabd685d3730a5760cd1c766f7fbde8fe85952011 (patch)
tree6721c96b5c08f8ee1167032fa5fab20023fc5c3d /src/libutil/compression.hh
parent3e0c6aac9a0431d850f325eb5b491ae12364e071 (diff)
parent03bb8f84e0f54d9980b160785f98da8ae07196fe (diff)
Merge branch 'feature/comp-level' of https://github.com/tomberek/nix
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r--src/libutil/compression.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh
index 338a0d9f2..9b1e4a9d4 100644
--- a/src/libutil/compression.hh
+++ b/src/libutil/compression.hh
@@ -19,9 +19,9 @@ ref<std::string> decompress(const std::string & method, const std::string & in);
std::unique_ptr<FinishSink> makeDecompressionSink(const std::string & method, Sink & nextSink);
-ref<std::string> compress(const std::string & method, const std::string & in, const bool parallel = false);
+ref<std::string> compress(const std::string & method, const std::string & in, const bool parallel = false, int level = -1);
-ref<CompressionSink> makeCompressionSink(const std::string & method, Sink & nextSink, const bool parallel = false);
+ref<CompressionSink> makeCompressionSink(const std::string & method, Sink & nextSink, const bool parallel = false, int level = -1);
MakeError(UnknownCompressionMethod, Error);