]> wimlib.net Git - wimlib/blobdiff - include/wimlib/chunk_compressor.h
Header fixes
[wimlib] / include / wimlib / chunk_compressor.h
index 176dc531710d8e82a5b10db7f6ae6af6e4c4689b..f21a0c6a7bd9fcf5d7e755a94223291cd4db3557 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef _WIMLIB_CHUNK_COMPRESSOR_H
 #define _WIMLIB_CHUNK_COMPRESSOR_H
 
-#include <wimlib/types.h>
+#include "wimlib/types.h"
 
 /* Interface for chunk compression.  Users can submit chunks of data to be
  * compressed, then retrieve them later in order.  This interface can be
@@ -32,7 +32,7 @@ struct chunk_compressor {
         * %false if the chunk compressor does not have space for the chunk at
         * the present time.  In the latter case, get_chunk() must be called to
         * retrieve a compressed chunk before trying again.  */
-       bool (*submit_chunk)(struct chunk_compressor *, const void *, size_t);
+       bool (*submit_chunk)(struct chunk_compressor *, const void *, u32);
 
        /* Get the next chunk of compressed data.
         *
@@ -53,16 +53,18 @@ struct chunk_compressor {
         * successfully retrieved, or %false if there are no chunks currently
         * being compressed.  */
        bool (*get_chunk)(struct chunk_compressor *,
-                         const void **, unsigned *, unsigned *);
+                         const void **, u32 *, u32 *);
 };
 
 
 /* Functions that return implementations of the chunk_compressor interface.  */
 
+#ifdef ENABLE_MULTITHREADED_COMPRESSION
 int
 new_parallel_chunk_compressor(int out_ctype, u32 out_chunk_size,
                              unsigned num_threads, u64 max_memory,
                              struct chunk_compressor **compressor_ret);
+#endif
 
 int
 new_serial_chunk_compressor(int out_ctype, u32 out_chunk_size,