]> wimlib.net Git - wimlib/blobdiff - include/wimlib.h
Improve handling of invalid filenames
[wimlib] / include / wimlib.h
index 16f4ba9c2813be433b11c7b330c2c7ede4f249e7..02f7473288c814b386fe2682f7c78d2125e4d2f7 100644 (file)
@@ -722,6 +722,18 @@ struct wimlib_capture_config {
 /** Extract files to standard output rather than to the filesystem. */
 #define WIMLIB_EXTRACT_FLAG_TO_STDOUT                  0x00000400
 
+/** Instead of ignoring files and directories with names that cannot be
+ * represented on the current platform (note: Windows has more restrictions on
+ * filenames than UNIX), try to replace characters or append junk to the names
+ * so that they can be extracted in some form. */
+#define WIMLIB_EXTRACT_FLAG_REPLACE_INVALID_FILENAMES  0x00000800
+
+/** On Windows, when there exist two or more files with the same case
+ * insensitive name (but different case sensitive names), try to extract them
+ * all by appending junk to the end of them, rather than extracting an
+ * arbitrarily only one.  */
+#define WIMLIB_EXTRACT_FLAG_ALL_CASE_CONFLICTS         0x00001000
+
 /******************************
  * WIMLIB_MOUNT_FLAG_*
  ******************************/
@@ -779,6 +791,9 @@ struct wimlib_capture_config {
 /** See ::WIMLIB_WRITE_FLAG_RECOMPRESS */
 #define WIMLIB_UNMOUNT_FLAG_RECOMPRESS                 0x00000008
 
+/** Do a "lazy" unmount (detach filesystem immediately, even if busy) */
+#define WIMLIB_UNMOUNT_FLAG_LAZY                       0x00000010
+
 /******************************
  * WIMLIB_WRITE_FLAG_*
  ******************************/