aboutsummaryrefslogtreecommitdiff
path: root/lib/comp/internal.h
blob: 8f880f40fba1ccc2e67768243dfd1e749d608ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef INTERNAL_H
#define INTERNAL_H

#include "compress.h"

int generic_write_options(int fd, const void *data, size_t size);

int generic_read_options(int fd, void *data, size_t size);

compressor_t *create_xz_compressor(bool compress, size_t block_size);

compressor_t *create_gzip_compressor(bool compress, size_t block_size);

compressor_t *create_lzo_compressor(bool compress, size_t block_size);

compressor_t *create_lz4_compressor(bool compress, size_t block_size);

compressor_t *create_zstd_compressor(bool compress, size_t block_size);

#endif /* INTERNAL_H */