#ifndef _COMPRESSOR_H_ #define _COMPRESSOR_H_ #include 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