X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fdentry.h;h=99de40af7224b7324a4335f0457dd44f86a6e85d;hb=67d55243710eb2b026e7a774eb41d5d873492b1f;hp=fe53ecf1683be79cc848484ad3421bcf1a1a32b4;hpb=49f2ae12d9940ab43f9a6df793facb1d8dddf5ea;p=wimlib diff --git a/src/dentry.h b/src/dentry.h index fe53ecf1..99de40af 100644 --- a/src/dentry.h +++ b/src/dentry.h @@ -159,6 +159,9 @@ struct wim_dentry { u8 is_extracted : 1; + /* Only used during NTFS capture */ + u8 is_win32_name : 1; + /* Byte 40 */ /* Pointer to the filename converted to UTF-8 (malloc()ed buffer). */ @@ -252,6 +255,7 @@ struct wim_inode { /* %true iff verify_inode() has run on this inode. */ u8 i_verified : 1; + /* Used only in NTFS-mode extraction */ u8 i_dos_name_extracted : 1; /* Number of alternate data streams associated with this inode */ @@ -339,6 +343,15 @@ extern int for_dentry_in_rbtree(struct rb_node *node, int (*visitor)(struct wim_dentry *, void *), void *arg); +static inline int for_dentry_child(const struct wim_dentry *dentry, + int (*visitor)(struct wim_dentry *, void *), + void *arg) +{ + return for_dentry_in_rbtree(dentry->d_inode->i_children.rb_node, + visitor, + arg); +} + extern int for_dentry_in_tree_depth(struct wim_dentry *root, int (*visitor)(struct wim_dentry*, void*), void *args);