compress: move compression mode enum to function.h
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <string.h>
|
||||
|
||||
enum b_status b_compressor_create(
|
||||
const struct b_compression_function *func, enum b_compressor_mode mode,
|
||||
const struct b_compression_function *func, enum b_compression_mode mode,
|
||||
struct b_ringbuffer *inbuf, struct b_ringbuffer *outbuf,
|
||||
struct b_compressor **out)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ enum b_status b_compressor_destroy(struct b_compressor *compressor)
|
||||
|
||||
enum b_status b_compressor_compress(struct b_compressor *compressor)
|
||||
{
|
||||
if (compressor->c_mode != B_COMPRESSOR_MODE_COMPRESS) {
|
||||
if (compressor->c_mode != B_COMPRESSION_MODE_COMPRESS) {
|
||||
return B_ERR_BAD_STATE;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ enum b_status b_compressor_compress_end(struct b_compressor *compressor)
|
||||
|
||||
enum b_status b_compressor_decompress(struct b_compressor *compressor)
|
||||
{
|
||||
if (compressor->c_mode != B_COMPRESSOR_MODE_DECOMPRESS) {
|
||||
if (compressor->c_mode != B_COMPRESSION_MODE_DECOMPRESS) {
|
||||
return B_ERR_BAD_STATE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user