diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-04 21:24:00 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-04 21:24:00 +0200 |
commit | a4ce623c5bd9230c66b0f309fb7d74c7f5ea7ccb (patch) | |
tree | 55ed14387d9c9856405b5607b1b20f1abe2b1fa0 | |
parent | 9940efe053263478c5f29367b11d6f7ed1276aa4 (diff) |
Move scan callback from libfstree to gensquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | bin/gensquashfs/src/mkfs.h | 9 | ||||
-rw-r--r-- | include/fstree.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/bin/gensquashfs/src/mkfs.h b/bin/gensquashfs/src/mkfs.h index 53fb018..671c3cb 100644 --- a/bin/gensquashfs/src/mkfs.h +++ b/bin/gensquashfs/src/mkfs.h @@ -41,6 +41,15 @@ #include <errno.h> #include <ctype.h> +/* + Optionally used by fstree_from_dir and fstree_from_subdir to + execute custom actions for each discovered node. + + 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 struct { sqfs_writer_cfg_t cfg; unsigned int dirscan_flags; diff --git a/include/fstree.h b/include/fstree.h index 653e180..8d5e499 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -46,15 +46,6 @@ typedef struct fstree_t fstree_t; #define container_of(ptr, type, member) \ ((type *)((char *)ptr - offsetof(type, member))) -/* - Optionally used by fstree_from_dir and fstree_from_subdir to - execute custom actions for each discovered node. - - 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); - /* Additional meta data stored in a tree_node_t for regular files. */ struct file_info_t { /* Linked list pointer for files in fstree_t */ |