X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompressor_ops.h;h=bef5cf6d1b440d9f7d6e5b91adaf8052e530c4ee;hp=32bc62c8fb668aa521f5ef080c16a0cbabdffd7b;hb=8618172276fae088f311923a61bbf26c3d4d8941;hpb=cf859259f51d8d5a166abaed9c564419ca340df9 diff --git a/include/wimlib/compressor_ops.h b/include/wimlib/compressor_ops.h index 32bc62c8..bef5cf6d 100644 --- a/include/wimlib/compressor_ops.h +++ b/include/wimlib/compressor_ops.h @@ -7,19 +7,17 @@ #ifndef _WIMLIB_COMPRESSOR_OPS_H #define _WIMLIB_COMPRESSOR_OPS_H -#include - -struct wimlib_compressor_params_header; +#include "wimlib/types.h" struct compressor_ops { - bool (*params_valid)(const struct wimlib_compressor_params_header *params); - u64 (*get_needed_memory)(size_t max_block_size, - const struct wimlib_compressor_params_header *params); + unsigned int compression_level, + bool destructive); int (*create_compressor)(size_t max_block_size, - const struct wimlib_compressor_params_header *params, + unsigned int compression_level, + bool destructive, void **private_ret); size_t (*compress)(const void *uncompressed_data, @@ -35,7 +33,4 @@ extern const struct compressor_ops lzx_compressor_ops; extern const struct compressor_ops xpress_compressor_ops; extern const struct compressor_ops lzms_compressor_ops; -extern void -cleanup_compressor_params(void); - #endif /* _WIMLIB_COMPRESSOR_OPS_H */