summaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor/internal.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 18:20:58 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 18:24:25 +0200
commit50b901d5ebdad40227de66cd5a0a0f62548f1563 (patch)
tree167e0da994a64a59164099b5d01b1e8aea8a5f66 /lib/sqfs/block_processor/internal.h
parentcada7ca7d9386e68c38fc504c01bd2cac33dac44 (diff)
Support associating a user pointer with data blocks
This commit modifies the block processor to support associating a user data pointer with data blocks that it forwards to the block writer, which is modified to accept an optional user data pointer. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/internal.h')
-rw-r--r--lib/sqfs/block_processor/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h
index 61e13d7..d28e023 100644
--- a/lib/sqfs/block_processor/internal.h
+++ b/lib/sqfs/block_processor/internal.h
@@ -42,6 +42,9 @@ typedef struct sqfs_block_t {
consolidate in reverse order. */
struct sqfs_block_t *frag_list;
+ /* User data pointer */
+ void *user;
+
sqfs_u8 data[];
} sqfs_block_t;
@@ -59,6 +62,7 @@ struct sqfs_block_processor_t {
sqfs_block_t *blk_current;
sqfs_u32 blk_flags;
sqfs_u32 blk_index;
+ void *user;
sqfs_block_t *free_list;