diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-28 17:06:06 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-29 00:26:32 +0200 |
commit | 46b01473eee7301cb7b49533af16abe0ee15c286 (patch) | |
tree | 38b16209b29f6ac95e537ea411db1174242925b5 /bin/gensquashfs/src/mkfs.h | |
parent | 935d4186952e4e4f544ddb20d8f7e4c2657ecb63 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/src/mkfs.h')
-rw-r--r-- | bin/gensquashfs/src/mkfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |