blob: 1ac79720f8aa1f1c5e64456f2a6a1c396e105863 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
* compress_cli.h
*
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#ifndef COMPRESS_CLI_H
#define COMPRESS_CLI_H
#include "sqfs/compressor.h"
#include "sqfs/super.h"
#include "sqfs/block.h"
#include "sqfs/error.h"
#include "sqfs/io.h"
#ifdef __cplusplus
extern "C" {
#endif
void compressor_print_available(void);
SQFS_COMPRESSOR compressor_get_default(void);
int compressor_cfg_init_options(sqfs_compressor_config_t *cfg,
SQFS_COMPRESSOR id,
size_t block_size, char *options);
void compressor_print_help(SQFS_COMPRESSOR id);
/*
Create an liblzo2 based LZO compressor.
XXX: This must be in libcommon instead of libsquashfs for legal reasons.
*/
int lzo_compressor_create(const sqfs_compressor_config_t *cfg,
sqfs_compressor_t **out);
#ifdef __cplusplus
}
#endif
#endif /* COMPRESS_CLI_H */
|