]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compressor_ops.h
system compression: try to attach WOF if compression fails
[wimlib] / include / wimlib / compressor_ops.h
index e172e567a7604acd801b99392a48a1f24de3eee4..bef5cf6d1b440d9f7d6e5b91adaf8052e530c4ee 100644 (file)
@@ -7,17 +7,17 @@
 #ifndef _WIMLIB_COMPRESSOR_OPS_H
 #define _WIMLIB_COMPRESSOR_OPS_H
 
-#include <wimlib/types.h>
+#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,
@@ -33,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 */