]> wimlib.net Git - wimlib/blobdiff - include/wimlib/dentry.h
Refactor headers
[wimlib] / include / wimlib / dentry.h
similarity index 97%
rename from src/dentry.h
rename to include/wimlib/dentry.h
index a613db42c655c7d412194a533256c767aceb1ceb..e67eb5b5ec60bdc74c427bddf47de1f6f59ca3e6 100644 (file)
@@ -1,24 +1,22 @@
 #ifndef _WIMLIB_DENTRY_H
 #define _WIMLIB_DENTRY_H
 
 #ifndef _WIMLIB_DENTRY_H
 #define _WIMLIB_DENTRY_H
 
-#include "util.h"
-#include "config.h"
-#include "list.h"
-#include "sha1.h"
-#include "rbtree.h"
+#include "wimlib/list.h"
+#include "wimlib/rbtree.h"
+#include "wimlib/sha1.h"
+#include "wimlib/types.h"
+
 #include <string.h>
 #include <string.h>
+#include <sys/types.h> /* uid_t, gid_t */
 
 #ifdef WITH_FUSE
 
 #ifdef WITH_FUSE
-#include <pthread.h>
+#  include <pthread.h>
 #endif
 
 #endif
 
-struct stat;
 struct wim_lookup_table;
 struct wim_lookup_table;
-struct WIMStruct;
 struct wim_lookup_table_entry;
 struct wimfs_fd;
 struct wim_inode;
 struct wim_lookup_table_entry;
 struct wimfs_fd;
 struct wim_inode;
-struct wim_dentry;
 
 /* Size of the struct wim_dentry up to and including the file_name_len. */
 #define WIM_DENTRY_DISK_SIZE    102
 
 /* Size of the struct wim_dentry up to and including the file_name_len. */
 #define WIM_DENTRY_DISK_SIZE    102
@@ -391,7 +389,7 @@ extern tchar *
 dentry_full_path(struct wim_dentry *dentry);
 
 extern struct wim_inode *
 dentry_full_path(struct wim_dentry *dentry);
 
 extern struct wim_inode *
-new_timeless_inode();
+new_timeless_inode(void);
 
 extern int
 new_dentry(const tchar *name, struct wim_dentry **dentry_ret);
 
 extern int
 new_dentry(const tchar *name, struct wim_dentry **dentry_ret);
@@ -562,4 +560,13 @@ dentry_has_long_name(const struct wim_dentry *dentry)
        return dentry->file_name_nbytes != 0;
 }
 
        return dentry->file_name_nbytes != 0;
 }
 
+extern void
+inode_ref_streams(struct wim_inode *inode);
+
+extern int
+dentry_tree_fix_inodes(struct wim_dentry *root, struct list_head *inode_list);
+
+extern int
+verify_dentry(struct wim_dentry *dentry, void *wim);
+
 #endif
 #endif