summaryrefslogtreecommitdiff
path: root/src/decompress.hh
blob: a15efdc14002e292fc3062be68e320bf46d182ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef DECOMPRESS_HH
#define DECOMPRESS_HH

#include "io.hh" // IWYU pragma: export

namespace decompress {

// zlib format
std::unique_ptr<io::Reader> zlib(std::unique_ptr<io::Reader> reader);

// gzip (.gz) format
std::unique_ptr<io::Reader> gzip(std::unique_ptr<io::Reader> reader);

// xz format
std::unique_ptr<io::Reader> xz(std::unique_ptr<io::Reader> reader);

}  // namespace decompress

#endif  // DECOMPRESS_HH