summaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer/common.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-25 13:21:07 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-25 13:32:42 +0200
commite0e98b7b747f63c1b8fccd035592e3684fdb2691 (patch)
tree31e75a68d40f6947cf09e06928df8f4f013d5a89 /lib/sqfs/data_writer/common.c
parentf64986ac1d95ffb2604cfef0efa8e7d2e0b7f8ce (diff)
Add the ability to hook into the data writer block writing
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer/common.c')
-rw-r--r--lib/sqfs/data_writer/common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqfs/data_writer/common.c b/lib/sqfs/data_writer/common.c
index 51acc1e..c9d5589 100644
--- a/lib/sqfs/data_writer/common.c
+++ b/lib/sqfs/data_writer/common.c
@@ -155,3 +155,10 @@ int sqfs_data_writer_write_fragment_table(sqfs_data_writer_t *proc,
super->fragment_table_start = start;
return 0;
}
+
+void sqfs_data_writer_set_hooks(sqfs_data_writer_t *proc, void *user_ptr,
+ const sqfs_block_hooks_t *hooks)
+{
+ proc->hooks = hooks;
+ proc->user_ptr = user_ptr;
+}