Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
compression-algo.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/error.hh
"
5
6
#include <string_view>
7
8
namespace
nix {
9
10
#define NIX_FOR_EACH_COMPRESSION_ALGO(MACRO) \
11
MACRO("none", none) \
12
MACRO("br", brotli) \
13
MACRO("bzip2", bzip2) \
14
MACRO("compress", compress) \
15
MACRO("grzip", grzip) \
16
MACRO("gzip", gzip) \
17
MACRO("lrzip", lrzip) \
18
MACRO("lz4", lz4) \
19
MACRO("lzip", lzip) \
20
MACRO("lzma", lzma) \
21
MACRO("lzop", lzop) \
22
MACRO("xz", xz) \
23
MACRO("zstd", zstd)
24
25
#define NIX_DEFINE_COMPRESSION_ALGO(name, value) value,
26
enum class
CompressionAlgo { NIX_FOR_EACH_COMPRESSION_ALGO(NIX_DEFINE_COMPRESSION_ALGO) };
27
#undef NIX_DEFINE_COMPRESSION_ALGO
28
36
CompressionAlgo parseCompressionAlgo(std::string_view method,
bool
suggestions =
false
);
37
38
std::string showCompressionAlgo(CompressionAlgo method);
39
40
MakeError(UnknownCompressionMethod,
Error
);
41
42
}
// namespace nix
nix::Error
Definition
error.hh:310
error.hh
This file defines two main structs/classes used in nix error handling.
libutil
include
nix
util
compression-algo.hh
Generated by
1.18.0