]> wimlib.net Git - wimlib/blobdiff - include/wimlib/wim.h
Add support for unsafe in-place compaction of WIM files
[wimlib] / include / wimlib / wim.h
index 011ecc345be1b051e35bc54b6b41eaddbc201b59..4cf6779f93830cf4227773b046f87de5130b1983 100644 (file)
@@ -11,7 +11,7 @@
 #include "wimlib/list.h"
 
 struct wim_image_metadata;
-struct wim_info;
+struct wim_xml_info;
 struct blob_table;
 
 /*
@@ -59,7 +59,7 @@ struct WIMStruct {
 
        /* Information from the XML data of the WIM file.  This information is
         * also maintained for a WIMStruct not backed by a file.  */
-       struct wim_info *wim_info;
+       struct wim_xml_info *xml_info;
 
        /* The blob table for this WIMStruct.  If this WIMStruct has a backing
         * file, then this table will index the blobs contained in that file.
@@ -124,6 +124,10 @@ struct WIMStruct {
        /* 1 if the WIM file has been locked for appending, otherwise 0  */
        u8 locked_for_append : 1;
 
+       /* 1 if the WIM file is currently being compacted by wimlib_overwrite()
+        * with WIMLIB_WRITE_FLAG_UNSAFE_COMPACT  */
+       u8 being_compacted : 1;
+
        /* If this WIM is backed by a file, then this is the compression type
         * for non-solid resources in that file.  */
        u8 compression_type;