]> wimlib.net Git - wimlib/blobdiff - src/unix_apply.c
resource: pass blob and offset to consume_chunk
[wimlib] / src / unix_apply.c
index 3746f504a3695954e9de7c0126872d151075681e..672f39e7788d3a336a2ec5ab7b8ed216e8b5e3f4 100644 (file)
@@ -611,7 +611,8 @@ unix_begin_extract_blob(struct blob_descriptor *blob, void *_ctx)
 
 /* Called when the next chunk of a blob has been read for extraction  */
 static int
 
 /* Called when the next chunk of a blob has been read for extraction  */
 static int
-unix_extract_chunk(const void *chunk, size_t size, void *_ctx)
+unix_extract_chunk(const struct blob_descriptor *blob, u64 offset,
+                  const void *chunk, size_t size, void *_ctx)
 {
        struct unix_apply_ctx *ctx = _ctx;
        int ret;
 {
        struct unix_apply_ctx *ctx = _ctx;
        int ret;
@@ -765,7 +766,7 @@ unix_extract(struct list_head *dentry_list, struct apply_ctx *_ctx)
 
        struct read_blob_callbacks cbs = {
                .begin_blob     = unix_begin_extract_blob,
 
        struct read_blob_callbacks cbs = {
                .begin_blob     = unix_begin_extract_blob,
-               .consume_chunk  = unix_extract_chunk,
+               .continue_blob  = unix_extract_chunk,
                .end_blob       = unix_end_extract_blob,
                .ctx            = ctx,
        };
                .end_blob       = unix_end_extract_blob,
                .ctx            = ctx,
        };