aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-19 11:16:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-19 11:18:07 +0200
commita872319cab2f56f207c39d6fd436741e661b809a (patch)
treead4c72d1a62a939cce7a0752bffec2faa45af387 /include
parente1e655b02f6c54177f9070eeb221ab95c6d4e20f (diff)
libfstree: Remove external file_info_t declaration
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 044bb48..1d427a4 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -23,7 +23,6 @@
typedef struct fstree_defaults_t fstree_defaults_t;
typedef struct tree_node_t tree_node_t;
-typedef struct file_info_t file_info_t;
typedef struct fstree_t fstree_t;
enum {
@@ -31,18 +30,6 @@ enum {
FLAG_FILE_ALREADY_MATCHED = 0x02,
};
-/* Additional meta data stored in a tree_node_t for regular files. */
-struct file_info_t {
- /* Path to the input file. */
- char *input_file;
-
- sqfs_inode_generic_t *inode;
-
- /* used by sort file processing */
- sqfs_s64 priority;
- int flags;
-};
-
/* A node in a file system tree */
struct tree_node_t {
tree_node_t *next_by_type;
@@ -74,8 +61,18 @@ struct tree_node_t {
/* Type specific data. "target" pointer is into payload area below. */
union {
+ struct {
+ /* Path to the input file. */
+ char *input_file;
+
+ sqfs_inode_generic_t *inode;
+
+ /* used by sort file processing */
+ sqfs_s64 priority;
+ int flags;
+ } file;
+
tree_node_t *children;
- file_info_t file;
char *target;
sqfs_u64 devno;
tree_node_t *target_node;