From 46b01473eee7301cb7b49533af16abe0ee15c286 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 28 Apr 2023 17:06:06 +0200 Subject: gensquashfs: Move the scan_dir callback before creating the node This way, we can remove the discard_node function and simplify the scan_dir code further. Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/mkfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/gensquashfs/src/mkfs.h') diff --git a/bin/gensquashfs/src/mkfs.h b/bin/gensquashfs/src/mkfs.h index 5bcdd16..9064a75 100644 --- a/bin/gensquashfs/src/mkfs.h +++ b/bin/gensquashfs/src/mkfs.h @@ -49,7 +49,8 @@ If it returns a value > 0, the new node is discarded, if < 0, scanning is aborted and returns a failure status. */ -typedef int (*scan_node_callback)(void *user, fstree_t *fs, tree_node_t *node); +typedef int (*scan_node_callback)(void *user, tree_node_t *root, + dir_entry_t *ent); typedef struct { sqfs_writer_cfg_t cfg; -- cgit v1.2.3