X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fdentry.h;h=7caeee997ce5659b43c8227fa40906eda00021ac;hp=fe53ecf1683be79cc848484ad3421bcf1a1a32b4;hb=5caa8cde33f9f1dd77437df6c7db9559a7f06dbe;hpb=e608625576eb70556863d37cbda367bc547eb3e0 diff --git a/src/dentry.h b/src/dentry.h index fe53ecf1..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). */ @@ -339,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);