struct wimlib_resource_entry *wentry);
extern int
-sort_blob_list(struct list_head *blob_list,
- size_t list_head_offset,
+sort_blob_list(struct list_head *blob_list, size_t list_head_offset,
int (*compar)(const void *, const void*));
extern int
struct blob_table *blob_table);
extern int
-hash_unhashed_blob(struct blob_descriptor *blob,
- struct blob_table *blob_table,
+hash_unhashed_blob(struct blob_descriptor *blob, struct blob_table *blob_table,
struct blob_descriptor **blob_ret);
extern struct blob_descriptor **
extern int
for_dentry_in_tree(struct wim_dentry *root,
- int (*visitor)(struct wim_dentry*, void*),
- void *args);
+ int (*visitor)(struct wim_dentry *, void *), void *args);
/* Iterate through each @child dentry of the @dir directory inode,
* in sorted order by case sensitive name. */
calculate_subdir_offsets(struct wim_dentry *root, u64 *subdir_offset_p);
extern int
-dentry_set_name(struct wim_dentry *dentry, const tchar *new_name);
+dentry_set_name(struct wim_dentry *dentry, const tchar *name);
extern int
-dentry_set_name_utf16le(struct wim_dentry *dentry, const utf16lechar *new_name,
- size_t new_name_nbytes);
+dentry_set_name_utf16le(struct wim_dentry *dentry, const utf16lechar *name,
+ size_t name_nbytes);
extern struct wim_dentry *
-get_dentry(struct WIMStruct *wim, const tchar *path,
- CASE_SENSITIVITY_TYPE case_type);
+get_dentry(WIMStruct *wim, const tchar *path, CASE_SENSITIVITY_TYPE case_type);
extern struct wim_dentry *
-get_dentry_child_with_name(const struct wim_dentry *dentry,
- const tchar *name,
+get_dentry_child_with_name(const struct wim_dentry *dentry, const tchar *name,
CASE_SENSITIVITY_TYPE case_type);
extern struct wim_dentry *
CASE_SENSITIVITY_TYPE case_type);
extern struct wim_dentry *
-get_parent_dentry(struct WIMStruct *wim, const tchar *path,
+get_parent_dentry(WIMStruct *wim, const tchar *path,
CASE_SENSITIVITY_TYPE case_type);
extern int
free_dentry(struct wim_dentry *dentry);
extern void
-free_dentry_tree(struct wim_dentry *root,
- struct blob_table *blob_table);
+free_dentry_tree(struct wim_dentry *root, struct blob_table *blob_table);
extern void
unlink_dentry(struct wim_dentry *dentry);
{
return dentry->d_short_name_nbytes != 0;
}
+
#endif /* _WIMLIB_DENTRY_H */
struct blob_table *blob_table);
extern bool
-inode_add_stream_with_data(struct wim_inode *inode, int stream_type,
- const utf16lechar *stream_name,
+inode_add_stream_with_data(struct wim_inode *inode,
+ int stream_type, const utf16lechar *stream_name,
const void *data, size_t size,
struct blob_table *blob_table);
inode_has_named_data_stream(const struct wim_inode *inode);
extern int
-inode_resolve_streams(struct wim_inode *inode,
- struct blob_table *table, bool force);
+inode_resolve_streams(struct wim_inode *inode, struct blob_table *table,
+ bool force);
extern int
blob_not_found_error(const struct wim_inode *inode, const u8 *hash);
get_dentry_child_with_utf16le_name(const struct wim_dentry *dentry,
const utf16lechar *name,
size_t name_nbytes,
- CASE_SENSITIVITY_TYPE case_ctype)
+ CASE_SENSITIVITY_TYPE case_type)
{
const struct wim_inode *dir = dentry->d_inode;
- bool ignore_case = will_ignore_case(case_ctype);
+ bool ignore_case = will_ignore_case(case_type);
struct wim_dentry dummy;
struct wim_dentry *child;