]> wimlib.net Git - wimlib/blobdiff - src/dentry.h
NTFS capture: Get DOS names from ntfs_readdir()
[wimlib] / src / dentry.h
index fe53ecf1683be79cc848484ad3421bcf1a1a32b4..7caeee997ce5659b43c8227fa40906eda00021ac 100644 (file)
@@ -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);