blob: ad193e80e041a6a66ce68893e069cccd59c9af60 (
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
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef COMPRESS_H
#define COMPRESS_H
#include <sys/types.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "squashfs.h"
typedef struct compressor_t compressor_t;
struct compressor_t {
ssize_t (*do_block)(compressor_t *cmp, const uint8_t *in, size_t size,
uint8_t *out, size_t outsize);
void (*destroy)(compressor_t *stream);
};
bool compressor_exists(E_SQFS_COMPRESSOR id);
compressor_t *compressor_create(E_SQFS_COMPRESSOR id, bool compress,
size_t block_size);
#endif /* COMPRESS_H */
|