summaryrefslogtreecommitdiff
path: root/include/sqfs/block_writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sqfs/block_writer.h')
-rw-r--r--include/sqfs/block_writer.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/sqfs/block_writer.h b/include/sqfs/block_writer.h
index f8bc671..6352f4d 100644
--- a/include/sqfs/block_writer.h
+++ b/include/sqfs/block_writer.h
@@ -58,6 +58,9 @@ struct sqfs_block_writer_t {
* @ref SQFS_BLK_LAST_BLOCK flag, the padding is added afterwards.
*
* @param wr A pointer to a block writer.
+ * @param user An optional user data pointer.
+ * The @ref sqfs_block_processor_t can be told to pass this
+ * on to the block writer for each block.
* @param size The size of the block to write.
* @param checksum A 32 bit checksum of the block data.
* @param flags A combination of @ref SQFS_BLK_FLAGS flag bits
@@ -70,9 +73,10 @@ struct sqfs_block_writer_t {
*
* @return Zero on success, an @ref SQFS_ERROR error on failure.
*/
- int (*write_data_block)(sqfs_block_writer_t *wr, sqfs_u32 size,
- sqfs_u32 checksum, sqfs_u32 flags,
- const sqfs_u8 *data, sqfs_u64 *location);
+ int (*write_data_block)(sqfs_block_writer_t *wr, void *user,
+ sqfs_u32 size, sqfs_u32 checksum,
+ sqfs_u32 flags, const sqfs_u8 *data,
+ sqfs_u64 *location);
/**
* @brief Get the number of blocks actually written to disk.