X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdentry.h;h=7caeee997ce5659b43c8227fa40906eda00021ac;hb=5caa8cde33f9f1dd77437df6c7db9559a7f06dbe;hp=d39d2237539646ae065e7d776c728a9e80a84314;hpb=c7af42d3d894338bbd1cb7f4b77948f746485482;p=wimlib diff --git a/src/dentry.h b/src/dentry.h index d39d2237..7caeee99 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,8 @@ struct wim_inode { /* %true iff verify_inode() has run on this inode. */ u8 i_verified : 1; + u8 i_dos_name_extracted : 1; + /* Number of alternate data streams associated with this inode */ u16 i_num_ads; @@ -337,6 +342,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);