va_end(va);
}
}
+
+void wimlib_warning(const char *format, ...)
+{
+ if (__wimlib_print_errors) {
+ va_list va;
+ int errno_save;
+
+ va_start(va, format);
+ errno_save = errno;
+ fputs("WARNING: ", stderr);
+ vfprintf(stderr, format, va);
+ errno = errno_save;
+ va_end(va);
+ }
+}
+
#endif
WIMLIBAPI int wimlib_set_print_errors(bool show_error_messages)
= "Could not read data from a file",
[WIMLIB_ERR_RENAME]
= "Could not rename a file",
- [WIMLIB_ERR_SPLIT]
- = "The WIM is part of a split WIM, which Wimlib does not support",
+ [WIMLIB_ERR_SPLIT_INVALID]
+ = "The WIM is part of an invalid split WIM",
+ [WIMLIB_ERR_SPLIT_UNSUPPORTED]
+ = "The WIM is part of a split WIM, which is not supported for this operation",
[WIMLIB_ERR_STAT]
= "Could not read the metadata for a file or directory",
[WIMLIB_ERR_TIMEOUT]