Add support for unsafe in-place compaction of WIM files
[wimlib] / include / wimlib / write.h
index 82e5576..3f7a7e5 100644 (file)
@@ -5,13 +5,11 @@
 #include "wimlib/types.h"
 
 /* Internal use only */
-#define WIMLIB_WRITE_FLAG_NO_BLOB_TABLE                        0x80000000
-#define WIMLIB_WRITE_FLAG_CHECKPOINT_AFTER_XML         0x40000000
-#define WIMLIB_WRITE_FLAG_HEADER_AT_END                        0x20000000
-#define WIMLIB_WRITE_FLAG_FILE_DESCRIPTOR              0x10000000
-#define WIMLIB_WRITE_FLAG_USE_EXISTING_TOTALBYTES      0x08000000
-#define WIMLIB_WRITE_FLAG_NO_METADATA                  0x04000000
-#define WIMLIB_WRITE_FLAG_OVERWRITE                    0x02000000
+#define WIMLIB_WRITE_FLAG_FILE_DESCRIPTOR              0x80000000
+#define WIMLIB_WRITE_FLAG_APPEND                       0x40000000
+#define WIMLIB_WRITE_FLAG_NO_NEW_BLOBS                 0x20000000
+#define WIMLIB_WRITE_FLAG_USE_EXISTING_TOTALBYTES      0x10000000
+#define WIMLIB_WRITE_FLAG_NO_METADATA                  0x08000000
 
 /* Keep in sync with wimlib.h  */
 #define WIMLIB_WRITE_MASK_PUBLIC (                       \
@@ -29,7 +27,8 @@
        WIMLIB_WRITE_FLAG_RETAIN_GUID                   | \
        WIMLIB_WRITE_FLAG_SOLID                         | \
        WIMLIB_WRITE_FLAG_SEND_DONE_WITH_FILE_MESSAGES  | \
-       WIMLIB_WRITE_FLAG_NO_SOLID_SORT)
+       WIMLIB_WRITE_FLAG_NO_SOLID_SORT                 | \
+       WIMLIB_WRITE_FLAG_UNSAFE_COMPACT)
 
 #if defined(HAVE_SYS_FILE_H) && defined(HAVE_FLOCK)
 extern int