aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/src/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-28 19:36:56 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-29 00:26:32 +0200
commit2285036e10863aba48dc6eed3c1a791118d11956 (patch)
treed94808261eb23df4c25db3c6de6dd45df2e692c7 /bin/gensquashfs/src/mkfs.h
parent46b01473eee7301cb7b49533af16abe0ee15c286 (diff)
gensquashfs: Dismantle the scan_dir wrapper
Create the directory iterator externally and pass it to fstree_from_dir. The unit test is also removed, because the heavy lifting is now done outside the function. 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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/gensquashfs/src/mkfs.h b/bin/gensquashfs/src/mkfs.h
index 9064a75..6923164 100644
--- a/bin/gensquashfs/src/mkfs.h
+++ b/bin/gensquashfs/src/mkfs.h
@@ -130,9 +130,8 @@ int fstree_from_file_stream(fstree_t *fs, istream_t *file,
Returns 0 on success, prints to stderr on failure.
*/
-int fstree_from_dir(fstree_t *fs, tree_node_t *root,
- const char *path, scan_node_callback cb, void *user,
- unsigned int flags);
+int fstree_from_dir(fstree_t *fs, tree_node_t *root, dir_iterator_t *dir,
+ scan_node_callback cb, void *user);
int fstree_sort_files(fstree_t *fs, istream_t *sortfile);