X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fdentry.h;fp=src%2Fdentry.h;h=e67eb5b5ec60bdc74c427bddf47de1f6f59ca3e6;hp=a613db42c655c7d412194a533256c767aceb1ceb;hb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;hpb=726f9bbd0bd664294fce8a50be1d5b6881df8d16 diff --git a/src/dentry.h b/include/wimlib/dentry.h similarity index 97% rename from src/dentry.h rename to include/wimlib/dentry.h index a613db42..e67eb5b5 100644 --- a/src/dentry.h +++ b/include/wimlib/dentry.h @@ -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 +#include /* uid_t, gid_t */ #ifdef WITH_FUSE -#include +# include #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