]> wimlib.net Git - wimlib/blobdiff - src/xpress_compress.c
WIMBoot / system compression: try WOFADK in addition to WOF
[wimlib] / src / xpress_compress.c
index 1c824a57634520cdd3974e32ef88cfbe47cf7aa6..6750160450ae76ec8fa4991f78867f89eea147fe 100644 (file)
@@ -1031,7 +1031,8 @@ xpress_get_compressor_size(size_t max_bufsize, unsigned compression_level)
 }
 
 static u64
 }
 
 static u64
-xpress_get_needed_memory(size_t max_bufsize, unsigned compression_level)
+xpress_get_needed_memory(size_t max_bufsize, unsigned compression_level,
+                        bool destructive)
 {
        u64 size = 0;
 
 {
        u64 size = 0;
 
@@ -1060,7 +1061,7 @@ xpress_get_needed_memory(size_t max_bufsize, unsigned compression_level)
 
 static int
 xpress_create_compressor(size_t max_bufsize, unsigned compression_level,
 
 static int
 xpress_create_compressor(size_t max_bufsize, unsigned compression_level,
-                        void **c_ret)
+                        bool destructive, void **c_ret)
 {
        struct xpress_compressor *c;
 
 {
        struct xpress_compressor *c;
 
@@ -1134,8 +1135,8 @@ oom0:
 }
 
 static size_t
 }
 
 static size_t
-xpress_compress(const void *in, size_t in_nbytes,
-               void *out, size_t out_nbytes_avail, void *_c)
+xpress_compress(const void *restrict in, size_t in_nbytes,
+               void *restrict out, size_t out_nbytes_avail, void *restrict _c)
 {
        struct xpress_compressor *c = _c;
 
 {
        struct xpress_compressor *c = _c;