Refactor headers
[wimlib] / include / wimlib / dentry.h
similarity index 97%
rename from src/dentry.h
rename to include/wimlib/dentry.h
index a613db4..e67eb5b 100644 (file)
@@ -1,24 +1,22 @@
 #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 <sys/types.h> /* uid_t, gid_t */
 
 #ifdef WITH_FUSE
-#include <pthread.h>
+#  include <pthread.h>
 #endif
 
-struct stat;
 struct wim_lookup_table;
-struct WIMStruct;
 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
@@ -391,7 +389,7 @@ extern tchar *
 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);
@@ -562,4 +560,13 @@ dentry_has_long_name(const struct wim_dentry *dentry)
        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