X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flookup_table.h;h=97d06ec76969d022359ddef792f201e432bc68ed;hb=edd7e04ddef20c47975bd2535960b6223496d99b;hp=c870a114cd28cb47826e797e1b84d7368e5d6263;hpb=c3ef484d402e49ae76c562ce77b81a5d6dcd8029;p=wimlib diff --git a/src/lookup_table.h b/src/lookup_table.h index c870a114..97d06ec7 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -185,6 +185,7 @@ struct lookup_table_entry { struct resource_entry output_resource_entry; struct list_head msg_list; + struct list_head dentry_list; }; union { @@ -198,9 +199,6 @@ struct lookup_table_entry { * been extracted to the staging directory when modifying a read-write * mounted WIM. */ struct list_head staging_list; - - /* Temporary field for creating a singly linked list. */ - struct lookup_table_entry *next_lte_in_swm; }; }; @@ -288,19 +286,8 @@ extern void free_lookup_table_entry(struct lookup_table_entry *lte); extern int dentry_resolve_ltes(struct dentry *dentry, void *__table); extern int dentry_unresolve_ltes(struct dentry *dentry, void *ignore); -/* Writes the lookup table to the output file. */ -static inline int write_lookup_table(struct lookup_table *table, FILE *out) -{ - return for_lookup_table_entry(table, write_lookup_table_entry, out); -} - -/* Unlinks and frees an entry from a lookup table. */ -static inline void lookup_table_remove(struct lookup_table *table, - struct lookup_table_entry *lte) -{ - lookup_table_unlink(table, lte); - free_lookup_table_entry(lte); -} +int write_lookup_table(struct lookup_table *table, FILE *out, + struct resource_entry *out_res_entry); static inline struct resource_entry* wim_metadata_resource_entry(WIMStruct *w) {