summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp/internal.h
blob: 229772ffcc6cc1736134e77f657cbe41a860774d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
 * internal.h
 *
 * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
 */
#ifndef INTERNAL_H
#define INTERNAL_H

#include "config.h"

#include "sqfs/compress.h"
#include "util.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(const compressor_config_t *cfg);

compressor_t *create_gzip_compressor(const compressor_config_t *cfg);

compressor_t *create_lzo_compressor(const compressor_config_t *cfg);

compressor_t *create_lz4_compressor(const compressor_config_t *cfg);

compressor_t *create_zstd_compressor(const compressor_config_t *cfg);

#endif /* INTERNAL_H */