aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/compression.hh
diff options
context:
space:
mode:
authorTom Bereknyei <tomberek@gmail.com>2021-10-12 02:14:36 -0400
committerTom Bereknyei <tomberek@gmail.com>2021-10-12 02:14:36 -0400
commit03bb8f84e0f54d9980b160785f98da8ae07196fe (patch)
tree7d6ab569ff1fa006ee307b90ecf5099b0f5a35d4 /src/libutil/compression.hh
parent01e9f046a8f8fafb4d084153d4b30dd3a8d7aef5 (diff)
Add compression level for NARs
Based off on @dtzWill's #2276
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);