23 lines
455 B
C
23 lines
455 B
C
#ifndef _COMPRESSOR_H_
|
|
#define _COMPRESSOR_H_
|
|
|
|
#include <blue/compress/compressor.h>
|
|
#include <blue/compress/function.h>
|
|
|
|
struct b_ringbuffer;
|
|
|
|
enum compressor_flags {
|
|
COMPRESSOR_EOF = 0x01u,
|
|
};
|
|
|
|
struct b_compressor {
|
|
enum compressor_flags c_flags;
|
|
enum b_compression_mode c_mode;
|
|
const struct b_compression_function *c_func;
|
|
struct b_ringbuffer *c_in, *c_out;
|
|
};
|
|
|
|
extern void *b_compressor_get_function_ctx(struct b_compressor *compressor);
|
|
|
|
#endif
|