]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.h
Fix sequential extraction, and include progress info
[wimlib] / src / lookup_table.h
index 2665c39c3de1029c6e7fad98037c0561b04e9d95..4458cc7ef1a146c1c59d9e100f710a84a5288ccb 100644 (file)
@@ -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 {
@@ -192,7 +193,10 @@ struct lookup_table_entry {
                 * extraction mode.   In these mode, all identical files are linked
                 * together, and @extracted_file will be set to the filename of the
                 * first extracted file containing this stream.  */
-               char *extracted_file;
+               struct {
+                       char *extracted_file;
+                       bool extracted;
+               };
 
                /* List of lookup table entries that correspond to streams that have
                 * been extracted to the staging directory when modifying a read-write
@@ -288,14 +292,6 @@ extern int dentry_unresolve_ltes(struct dentry *dentry, void *ignore);
 int write_lookup_table(struct lookup_table *table, FILE *out,
                       struct resource_entry *out_res_entry);
 
-/* 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);
-}
-
 static inline struct resource_entry* wim_metadata_resource_entry(WIMStruct *w)
 {
        return &w->image_metadata[