meta: add compress module for (de)compressing data
This commit is contained in:
22
compress/compressor.h
Normal file
22
compress/compressor.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef _COMPRESSOR_H_
|
||||
#define _COMPRESSOR_H_
|
||||
|
||||
#include <blue/compress/compressor.h>
|
||||
|
||||
struct b_compression_function;
|
||||
struct b_ringbuffer;
|
||||
|
||||
enum compressor_flags {
|
||||
COMPRESSOR_EOF = 0x01u,
|
||||
};
|
||||
|
||||
struct b_compressor {
|
||||
enum compressor_flags c_flags;
|
||||
enum b_compressor_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
|
||||
Reference in New Issue
Block a user