-extern struct wim_ads_entry *inode_add_ads(struct wim_inode *dentry,
- const char *stream_name);
-extern int inode_add_ads_with_data(struct wim_inode *inode, const char *name,
- const u8 *value, size_t size,
- struct wim_lookup_table *lookup_table);
+extern void
+put_dentry(struct wim_dentry *dentry);
+
+extern void
+free_dentry_tree(struct wim_dentry *root,
+ struct wim_lookup_table *lookup_table);
+
+extern int
+increment_dentry_refcnt(struct wim_dentry *dentry, void *ignore);
+
+extern void
+unlink_dentry(struct wim_dentry *dentry);
+
+extern bool
+dentry_add_child(struct wim_dentry * restrict parent,
+ struct wim_dentry * restrict child);
+
+extern struct wim_ads_entry *
+inode_get_ads_entry(struct wim_inode *inode, const mbchar *stream_name,
+ u16 *idx_ret);
+
+extern struct wim_ads_entry *
+inode_add_ads_utf16le(struct wim_inode *inode,
+ const utf16lechar *stream_name,
+ size_t stream_name_nbytes);
+
+extern struct wim_ads_entry *
+inode_add_ads(struct wim_inode *dentry, const mbchar *stream_name);
+
+extern int
+inode_add_ads_with_data(struct wim_inode *inode, const mbchar *name,
+ const void *value, size_t size,
+ struct wim_lookup_table *lookup_table);
+
+extern void
+inode_remove_ads(struct wim_inode *inode, u16 idx,
+ struct wim_lookup_table *lookup_table);