]> wimlib.net Git - wimlib/blobdiff - include/wimlib/dentry.h
Refactor read_dentry_tree()
[wimlib] / include / wimlib / dentry.h
index fa35869b83ce47674cccddcb77e85e36769af558..b1fba029233396cf69eb1a4640c4482a08430c89 100644 (file)
@@ -44,7 +44,7 @@ struct wim_security_data;
  * that Microsoft may have fixed this problem, since I've only noticed it in the
  * 'install.wim' for Windows 7).  For those dentries, we have to use the
  * conflicting fields to split up the hard link groups.  (See
- * dentry_tree_fix_inodes() in hardlink.c).
+ * dentry_tree_fix_inodes() in inode_fixup.c.)
  */
 struct wim_dentry {
        /* Pointer to the inode for this dentry.  This will contain some
@@ -279,14 +279,8 @@ rename_wim_path(WIMStruct *wim, const tchar *from, const tchar *to,
 
 
 extern int
-read_dentry(const u8 * restrict metadata_resource,
-           u64 metadata_resource_len, u64 offset,
-           struct wim_dentry * restrict dentry);
-
-extern int
-read_dentry_tree(const u8 * restrict metadata_resource,
-                u64 metadata_resource_len,
-                struct wim_dentry * restrict dentry);
+read_dentry_tree(const u8 *buf, size_t buf_len,
+                u64 root_offset, struct wim_dentry **root_ret);
 
 extern u8 *
 write_dentry_tree(const struct wim_dentry * restrict tree,