395 # if defined(_MSC_VER) && _MSC_VER < 1800
396 typedef unsigned char bool;
398 # include <stdbool.h>
408 #define WIMLIB_MAJOR_VERSION 1
411 #define WIMLIB_MINOR_VERSION 13
414 #define WIMLIB_PATCH_VERSION 4
443 # define wimlib_timespec timespec
450 #ifndef WIMLIB_WIMSTRUCT_DECLARED
452 #define WIMLIB_WIMSTRUCT_DECLARED
465 # define WIMLIB_WIM_PATH_SEPARATOR '\\'
466 # define WIMLIB_WIM_PATH_SEPARATOR_STRING L"\\"
470 # define WIMLIB_WIM_PATH_SEPARATOR '/'
471 # define WIMLIB_WIM_PATH_SEPARATOR_STRING "/"
476 #define WIMLIB_WIM_ROOT_PATH WIMLIB_WIM_PATH_SEPARATOR_STRING
480 #define WIMLIB_IS_WIM_ROOT_PATH(path) \
481 ((path)[0] == WIMLIB_WIM_PATH_SEPARATOR && \
485 #define WIMLIB_GUID_LEN 16
1286 #define WIMLIB_CHANGE_READONLY_FLAG 0x00000001
1290 #define WIMLIB_CHANGE_GUID 0x00000002
1294 #define WIMLIB_CHANGE_BOOT_INDEX 0x00000004
1302 #define WIMLIB_CHANGE_RPFIX_FLAG 0x00000008
1545 #define WIMLIB_FILE_ATTRIBUTE_READONLY 0x00000001
1546 #define WIMLIB_FILE_ATTRIBUTE_HIDDEN 0x00000002
1547 #define WIMLIB_FILE_ATTRIBUTE_SYSTEM 0x00000004
1548 #define WIMLIB_FILE_ATTRIBUTE_DIRECTORY 0x00000010
1549 #define WIMLIB_FILE_ATTRIBUTE_ARCHIVE 0x00000020
1550 #define WIMLIB_FILE_ATTRIBUTE_DEVICE 0x00000040
1551 #define WIMLIB_FILE_ATTRIBUTE_NORMAL 0x00000080
1552 #define WIMLIB_FILE_ATTRIBUTE_TEMPORARY 0x00000100
1553 #define WIMLIB_FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
1554 #define WIMLIB_FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
1555 #define WIMLIB_FILE_ATTRIBUTE_COMPRESSED 0x00000800
1556 #define WIMLIB_FILE_ATTRIBUTE_OFFLINE 0x00001000
1557 #define WIMLIB_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
1558 #define WIMLIB_FILE_ATTRIBUTE_ENCRYPTED 0x00004000
1559 #define WIMLIB_FILE_ATTRIBUTE_VIRTUAL 0x00010000
1566 #define WIMLIB_REPARSE_TAG_RESERVED_ZERO 0x00000000
1567 #define WIMLIB_REPARSE_TAG_RESERVED_ONE 0x00000001
1568 #define WIMLIB_REPARSE_TAG_MOUNT_POINT 0xA0000003
1569 #define WIMLIB_REPARSE_TAG_HSM 0xC0000004
1570 #define WIMLIB_REPARSE_TAG_HSM2 0x80000006
1571 #define WIMLIB_REPARSE_TAG_DRIVER_EXTENDER 0x80000005
1572 #define WIMLIB_REPARSE_TAG_SIS 0x80000007
1573 #define WIMLIB_REPARSE_TAG_DFS 0x8000000A
1574 #define WIMLIB_REPARSE_TAG_DFSR 0x80000012
1575 #define WIMLIB_REPARSE_TAG_FILTER_MANAGER 0x8000000B
1576 #define WIMLIB_REPARSE_TAG_WOF 0x80000017
1577 #define WIMLIB_REPARSE_TAG_SYMLINK 0xA000000C
1687 #define WIMLIB_ITERATE_DIR_TREE_FLAG_RECURSIVE 0x00000001
1691 #define WIMLIB_ITERATE_DIR_TREE_FLAG_CHILDREN 0x00000002
1698 #define WIMLIB_ITERATE_DIR_TREE_FLAG_RESOURCES_NEEDED 0x00000004
1714 #define WIMLIB_ADD_FLAG_NTFS 0x00000001
1718 #define WIMLIB_ADD_FLAG_DEREFERENCE 0x00000002
1723 #define WIMLIB_ADD_FLAG_VERBOSE 0x00000004
1733 #define WIMLIB_ADD_FLAG_BOOT 0x00000008
1740 #define WIMLIB_ADD_FLAG_UNIX_DATA 0x00000010
1744 #define WIMLIB_ADD_FLAG_NO_ACLS 0x00000020
1751 #define WIMLIB_ADD_FLAG_STRICT_ACLS 0x00000040
1757 #define WIMLIB_ADD_FLAG_EXCLUDE_VERBOSE 0x00000080
1766 #define WIMLIB_ADD_FLAG_RPFIX 0x00000100
1769 #define WIMLIB_ADD_FLAG_NORPFIX 0x00000200
1775 #define WIMLIB_ADD_FLAG_NO_UNSUPPORTED_EXCLUDE 0x00000400
1792 #define WIMLIB_ADD_FLAG_WINCONFIG 0x00000800
1822 #define WIMLIB_ADD_FLAG_WIMBOOT 0x00001000
1830 #define WIMLIB_ADD_FLAG_NO_REPLACE 0x00002000
1839 #define WIMLIB_ADD_FLAG_TEST_FILE_EXCLUSION 0x00004000
1851 #define WIMLIB_ADD_FLAG_SNAPSHOT 0x00008000
1861 #define WIMLIB_ADD_FLAG_FILE_PATHS_UNNEEDED 0x00010000
1868 #define WIMLIB_DELETE_FLAG_FORCE 0x00000001
1872 #define WIMLIB_DELETE_FLAG_RECURSIVE 0x00000002
1884 #define WIMLIB_EXPORT_FLAG_BOOT 0x00000001
1889 #define WIMLIB_EXPORT_FLAG_NO_NAMES 0x00000002
1892 #define WIMLIB_EXPORT_FLAG_NO_DESCRIPTIONS 0x00000004
1897 #define WIMLIB_EXPORT_FLAG_GIFT 0x00000008
1914 #define WIMLIB_EXPORT_FLAG_WIMBOOT 0x00000010
1929 #define WIMLIB_EXTRACT_FLAG_NTFS 0x00000001
1933 #define WIMLIB_EXTRACT_FLAG_RECOVER_DATA 0x00000002
1937 #define WIMLIB_EXTRACT_FLAG_UNIX_DATA 0x00000020
1941 #define WIMLIB_EXTRACT_FLAG_NO_ACLS 0x00000040
1952 #define WIMLIB_EXTRACT_FLAG_STRICT_ACLS 0x00000080
1962 #define WIMLIB_EXTRACT_FLAG_RPFIX 0x00000100
1967 #define WIMLIB_EXTRACT_FLAG_NORPFIX 0x00000200
1971 #define WIMLIB_EXTRACT_FLAG_TO_STDOUT 0x00000400
1982 #define WIMLIB_EXTRACT_FLAG_REPLACE_INVALID_FILENAMES 0x00000800
1992 #define WIMLIB_EXTRACT_FLAG_ALL_CASE_CONFLICTS 0x00001000
1997 #define WIMLIB_EXTRACT_FLAG_STRICT_TIMESTAMPS 0x00002000
2001 #define WIMLIB_EXTRACT_FLAG_STRICT_SHORT_NAMES 0x00004000
2007 #define WIMLIB_EXTRACT_FLAG_STRICT_SYMLINKS 0x00008000
2022 #define WIMLIB_EXTRACT_FLAG_GLOB_PATHS 0x00040000
2027 #define WIMLIB_EXTRACT_FLAG_STRICT_GLOB 0x00080000
2034 #define WIMLIB_EXTRACT_FLAG_NO_ATTRIBUTES 0x00100000
2042 #define WIMLIB_EXTRACT_FLAG_NO_PRESERVE_DIR_STRUCTURE 0x00200000
2050 #define WIMLIB_EXTRACT_FLAG_WIMBOOT 0x00400000
2060 #define WIMLIB_EXTRACT_FLAG_COMPACT_XPRESS4K 0x01000000
2064 #define WIMLIB_EXTRACT_FLAG_COMPACT_XPRESS8K 0x02000000
2068 #define WIMLIB_EXTRACT_FLAG_COMPACT_XPRESS16K 0x04000000
2072 #define WIMLIB_EXTRACT_FLAG_COMPACT_LZX 0x08000000
2079 #define WIMLIB_MOUNT_FLAG_READWRITE 0x00000001
2082 #define WIMLIB_MOUNT_FLAG_DEBUG 0x00000002
2085 #define WIMLIB_MOUNT_FLAG_STREAM_INTERFACE_NONE 0x00000004
2090 #define WIMLIB_MOUNT_FLAG_STREAM_INTERFACE_XATTR 0x00000008
2094 #define WIMLIB_MOUNT_FLAG_STREAM_INTERFACE_WINDOWS 0x00000010
2097 #define WIMLIB_MOUNT_FLAG_UNIX_DATA 0x00000020
2101 #define WIMLIB_MOUNT_FLAG_ALLOW_OTHER 0x00000040
2113 #define WIMLIB_OPEN_FLAG_CHECK_INTEGRITY 0x00000001
2118 #define WIMLIB_OPEN_FLAG_ERROR_IF_SPLIT 0x00000002
2128 #define WIMLIB_OPEN_FLAG_WRITE_ACCESS 0x00000004
2136 #define WIMLIB_UNMOUNT_FLAG_CHECK_INTEGRITY 0x00000001
2140 #define WIMLIB_UNMOUNT_FLAG_COMMIT 0x00000002
2144 #define WIMLIB_UNMOUNT_FLAG_REBUILD 0x00000004
2148 #define WIMLIB_UNMOUNT_FLAG_RECOMPRESS 0x00000008
2158 #define WIMLIB_UNMOUNT_FLAG_FORCE 0x00000010
2164 #define WIMLIB_UNMOUNT_FLAG_NEW_IMAGE 0x00000020
2172 #define WIMLIB_UPDATE_FLAG_SEND_PROGRESS 0x00000001
2186 #define WIMLIB_WRITE_FLAG_CHECK_INTEGRITY 0x00000001
2193 #define WIMLIB_WRITE_FLAG_NO_CHECK_INTEGRITY 0x00000002
2207 #define WIMLIB_WRITE_FLAG_PIPABLE 0x00000004
2213 #define WIMLIB_WRITE_FLAG_NOT_PIPABLE 0x00000008
2240 #define WIMLIB_WRITE_FLAG_RECOMPRESS 0x00000010
2255 #define WIMLIB_WRITE_FLAG_FSYNC 0x00000020
2269 #define WIMLIB_WRITE_FLAG_REBUILD 0x00000040
2280 #define WIMLIB_WRITE_FLAG_SOFT_DELETE 0x00000080
2291 #define WIMLIB_WRITE_FLAG_IGNORE_READONLY_FLAG 0x00000100
2299 #define WIMLIB_WRITE_FLAG_SKIP_EXTERNAL_WIMS 0x00000200
2302 #define WIMLIB_WRITE_FLAG_STREAMS_OK 0x00000400
2310 #define WIMLIB_WRITE_FLAG_RETAIN_GUID 0x00000800
2347 #define WIMLIB_WRITE_FLAG_SOLID 0x00001000
2354 #define WIMLIB_WRITE_FLAG_SEND_DONE_WITH_FILE_MESSAGES 0x00002000
2361 #define WIMLIB_WRITE_FLAG_NO_SOLID_SORT 0x00004000
2379 #define WIMLIB_WRITE_FLAG_UNSAFE_COMPACT 0x00008000
2386 #define WIMLIB_INIT_FLAG_ASSUME_UTF8 0x00000001
2396 #define WIMLIB_INIT_FLAG_DONT_ACQUIRE_PRIVILEGES 0x00000002
2403 #define WIMLIB_INIT_FLAG_STRICT_CAPTURE_PRIVILEGES 0x00000004
2410 #define WIMLIB_INIT_FLAG_STRICT_APPLY_PRIVILEGES 0x00000008
2414 #define WIMLIB_INIT_FLAG_DEFAULT_CASE_SENSITIVE 0x00000010
2418 #define WIMLIB_INIT_FLAG_DEFAULT_CASE_INSENSITIVE 0x00000020
2426 #define WIMLIB_REF_FLAG_GLOB_ENABLE 0x00000001
2435 #define WIMLIB_REF_FLAG_GLOB_ERR_ON_NOMATCH 0x00000002
2602 #define WIMLIB_NO_IMAGE 0
2605 #define WIMLIB_ALL_IMAGES (-1)
3519 int wim_write_flags);
3537 int wim_write_flags,
3852 const wimlib_tchar *
const *resource_wimfiles_or_globs,
3879 unsigned num_resource_wims,
int ref_flags);
3945 WIMStruct *template_wim,
int template_image,
4157 void (*free_func)(
void *),
4158 void *(*realloc_func)(
void *,
size_t));
4581 unsigned num_threads);
4608 unsigned num_threads);
4627 struct wimlib_compressor;
4630 struct wimlib_decompressor;
4674 size_t max_block_size,
4675 unsigned int compression_level);
4677 #define WIMLIB_COMPRESSOR_FLAG_DESTRUCTIVE 0x80000000
4749 size_t max_block_size,
4750 unsigned int compression_level,
4751 struct wimlib_compressor **compressor_ret);
4775 void *compressed_data,
size_t compressed_size_avail,
4776 struct wimlib_compressor *compressor);
4822 size_t max_block_size,
4823 struct wimlib_decompressor **decompressor_ret);
4854 void *uncompressed_data,
size_t uncompressed_size,
4855 struct wimlib_decompressor *decompressor);
int wimlib_create_compressor(enum wimlib_compression_type ctype, size_t max_block_size, unsigned int compression_level, struct wimlib_compressor **compressor_ret)
Allocate a compressor for the specified compression type using the specified parameters.
int wimlib_create_decompressor(enum wimlib_compression_type ctype, size_t max_block_size, struct wimlib_decompressor **decompressor_ret)
Allocate a decompressor for the specified compression type.
int wimlib_set_default_compression_level(int ctype, unsigned int compression_level)
Set the default compression level for the specified compression type.
int wimlib_decompress(const void *compressed_data, size_t compressed_size, void *uncompressed_data, size_t uncompressed_size, struct wimlib_decompressor *decompressor)
Decompress a buffer of data.
void wimlib_free_compressor(struct wimlib_compressor *compressor)
Free a compressor previously allocated with wimlib_create_compressor().
uint64_t wimlib_get_compressor_needed_memory(enum wimlib_compression_type ctype, size_t max_block_size, unsigned int compression_level)
Return the approximate number of bytes needed to allocate a compressor with wimlib_create_compressor(...
void wimlib_free_decompressor(struct wimlib_decompressor *decompressor)
Free a decompressor previously allocated with wimlib_create_decompressor().
size_t wimlib_compress(const void *uncompressed_data, size_t uncompressed_size, void *compressed_data, size_t compressed_size_avail, struct wimlib_compressor *compressor)
Compress a buffer of data.
int wimlib_open_wim(const wimlib_tchar *wim_file, int open_flags, WIMStruct **wim_ret)
Open a WIM file and create a WIMStruct for it.
int wimlib_open_wim_with_progress(const wimlib_tchar *wim_file, int open_flags, WIMStruct **wim_ret, wimlib_progress_func_t progfunc, void *progctx)
Same as wimlib_open_wim(), but allows specifying a progress function and progress context.
int wimlib_create_new_wim(enum wimlib_compression_type ctype, WIMStruct **wim_ret)
Create a WIMStruct which initially contains no images and is not backed by an on-disk file.
const wimlib_tchar * wimlib_get_version_string(void)
Since wimlib v1.13.0: like wimlib_get_version(), but returns the full PACKAGE_VERSION string that was...
int wimlib_set_error_file(FILE *fp)
Set the file to which the library will print error and warning messages.
char wimlib_tchar
See Character encoding.
Definition: wimlib.h:459
#define WIMLIB_GUID_LEN
Length of a Globally Unique Identifier (GUID), in bytes.
Definition: wimlib.h:485
int wimlib_verify_wim(WIMStruct *wim, int verify_flags)
Perform verification checks on a WIM file.
void wimlib_free(WIMStruct *wim)
Release a reference to a WIMStruct.
int wimlib_set_print_errors(bool show_messages)
Set whether wimlib can print error and warning messages to the error file, which defaults to standard...
void wimlib_register_progress_function(WIMStruct *wim, wimlib_progress_func_t progfunc, void *progctx)
Register a progress function with a WIMStruct.
uint32_t wimlib_get_version(void)
Return the version of wimlib as a 32-bit number whose top 12 bits contain the major version,...
struct WIMStruct WIMStruct
Opaque structure that represents a WIM, possibly backed by an on-disk file.
Definition: wimlib.h:451
int wimlib_set_memory_allocator(void *(*malloc_func)(size_t), void(*free_func)(void *), void *(*realloc_func)(void *, size_t))
Set the functions that wimlib uses to allocate and free memory.
#define wimlib_timespec
Definition: wimlib.h:443
int wimlib_set_error_file_by_name(const wimlib_tchar *path)
Set the path to the file to which the library will print error and warning messages.
int wimlib_global_init(int init_flags)
Initialization function for wimlib.
const wimlib_tchar * wimlib_get_compression_type_string(enum wimlib_compression_type ctype)
Convert a wimlib_compression_type value into a string.
wimlib_error_code
Possible values of the error code returned by many functions in wimlib.
Definition: wimlib.h:2516
void wimlib_global_cleanup(void)
Cleanup function for wimlib.
const wimlib_tchar * wimlib_get_error_string(enum wimlib_error_code code)
Convert a wimlib error code into a string describing it.
wimlib_compression_type
Specifies a compression type.
Definition: wimlib.h:497
@ WIMLIB_ERR_INVALID_IMAGE
Definition: wimlib.h:2530
@ WIMLIB_ERR_SET_XATTR
Definition: wimlib.h:2597
@ WIMLIB_ERR_UNABLE_TO_READ_CAPTURE_CONFIG
Definition: wimlib.h:2589
@ WIMLIB_ERR_READLINK
Definition: wimlib.h:2560
@ WIMLIB_ERR_PATH_DOES_NOT_EXIST
Definition: wimlib.h:2558
@ WIMLIB_ERR_DECOMPRESSION
Definition: wimlib.h:2519
@ WIMLIB_ERR_XML
Definition: wimlib.h:2579
@ WIMLIB_ERR_SPLIT_INVALID
Definition: wimlib.h:2570
@ WIMLIB_ERR_INVALID_XATTR
Definition: wimlib.h:2596
@ WIMLIB_ERR_INVALID_INTEGRITY_TABLE
Definition: wimlib.h:2531
@ WIMLIB_ERR_SNAPSHOT_FAILURE
Definition: wimlib.h:2595
@ WIMLIB_ERR_READ
Definition: wimlib.h:2559
@ WIMLIB_ERR_IMAGE_HAS_MULTIPLE_REFERENCES
Definition: wimlib.h:2592
@ WIMLIB_ERR_REPARSE_POINT_FIXUP_FAILED
Definition: wimlib.h:2562
@ WIMLIB_ERR_INVALID_PARAM
Definition: wimlib.h:2535
@ WIMLIB_ERR_RESOURCE_NOT_FOUND
Definition: wimlib.h:2563
@ WIMLIB_ERR_MOUNTED_IMAGE_IS_BUSY
Definition: wimlib.h:2585
@ WIMLIB_ERR_INVALID_UTF8_STRING
Definition: wimlib.h:2541
@ WIMLIB_ERR_UNSUPPORTED_FILE
Definition: wimlib.h:2576
@ WIMLIB_ERR_INSUFFICIENT_PRIVILEGES
Definition: wimlib.h:2524
@ WIMLIB_ERR_SET_TIMESTAMPS
Definition: wimlib.h:2569
@ WIMLIB_ERR_OPENDIR
Definition: wimlib.h:2557
@ WIMLIB_ERR_NTFS_3G
Definition: wimlib.h:2555
@ WIMLIB_ERR_IMAGE_NAME_COLLISION
Definition: wimlib.h:2523
@ WIMLIB_ERR_RENAME
Definition: wimlib.h:2561
@ WIMLIB_ERR_NOT_A_WIM_FILE
Definition: wimlib.h:2552
@ WIMLIB_ERR_UNKNOWN_PROGRESS_STATUS
Definition: wimlib.h:2583
@ WIMLIB_ERR_NO_FILENAME
Definition: wimlib.h:2554
@ WIMLIB_ERR_WRITE
Definition: wimlib.h:2578
@ WIMLIB_ERR_INVALID_LOOKUP_TABLE_ENTRY
Definition: wimlib.h:2532
@ WIMLIB_ERR_NOT_A_REGULAR_FILE
Definition: wimlib.h:2551
@ WIMLIB_ERR_STAT
Definition: wimlib.h:2571
@ WIMLIB_ERR_NOT_PIPABLE
Definition: wimlib.h:2553
@ WIMLIB_ERR_IS_DIRECTORY
Definition: wimlib.h:2542
@ WIMLIB_ERR_METADATA_NOT_FOUND
Definition: wimlib.h:2545
@ WIMLIB_ERR_ABORTED_BY_PROGRESS
Definition: wimlib.h:2582
@ WIMLIB_ERR_WIMBOOT
Definition: wimlib.h:2581
@ WIMLIB_ERR_WIM_IS_INCOMPLETE
Definition: wimlib.h:2590
@ WIMLIB_ERR_UNKNOWN_VERSION
Definition: wimlib.h:2574
@ WIMLIB_ERR_INVALID_METADATA_RESOURCE
Definition: wimlib.h:2533
@ WIMLIB_ERR_SET_SECURITY
Definition: wimlib.h:2567
@ WIMLIB_ERR_OPEN
Definition: wimlib.h:2556
@ WIMLIB_ERR_IS_SPLIT_WIM
Definition: wimlib.h:2543
@ WIMLIB_ERR_SET_SHORT_NAME
Definition: wimlib.h:2568
@ WIMLIB_ERR_NOMEM
Definition: wimlib.h:2548
@ WIMLIB_ERR_INVALID_OVERLAY
Definition: wimlib.h:2534
@ WIMLIB_ERR_MKNOD
Definition: wimlib.h:2584
@ WIMLIB_ERR_INVALID_RESOURCE_HASH
Definition: wimlib.h:2539
@ WIMLIB_ERR_SET_REPARSE_DATA
Definition: wimlib.h:2566
@ WIMLIB_ERR_MKDIR
Definition: wimlib.h:2546
@ WIMLIB_ERR_FUSE
Definition: wimlib.h:2520
@ WIMLIB_ERR_INVALID_REPARSE_DATA
Definition: wimlib.h:2538
@ WIMLIB_ERR_DUPLICATE_EXPORTED_IMAGE
Definition: wimlib.h:2593
@ WIMLIB_ERR_SUCCESS
Definition: wimlib.h:2517
@ WIMLIB_ERR_NOTEMPTY
Definition: wimlib.h:2550
@ WIMLIB_ERR_UNSUPPORTED
Definition: wimlib.h:2575
@ WIMLIB_ERR_INVALID_CAPTURE_CONFIG
Definition: wimlib.h:2526
@ WIMLIB_ERR_INVALID_CHUNK_SIZE
Definition: wimlib.h:2527
@ WIMLIB_ERR_LINK
Definition: wimlib.h:2544
@ WIMLIB_ERR_INVALID_PIPABLE_WIM
Definition: wimlib.h:2537
@ WIMLIB_ERR_IMAGE_COUNT
Definition: wimlib.h:2522
@ WIMLIB_ERR_INVALID_HEADER
Definition: wimlib.h:2529
@ WIMLIB_ERR_UNEXPECTED_END_OF_FILE
Definition: wimlib.h:2572
@ WIMLIB_ERR_GLOB_HAD_NO_MATCHES
Definition: wimlib.h:2521
@ WIMLIB_ERR_NOTDIR
Definition: wimlib.h:2549
@ WIMLIB_ERR_UNICODE_STRING_NOT_REPRESENTABLE
Definition: wimlib.h:2573
@ WIMLIB_ERR_FVE_LOCKED_VOLUME
Definition: wimlib.h:2588
@ WIMLIB_ERR_COMPACTION_NOT_POSSIBLE
Definition: wimlib.h:2591
@ WIMLIB_ERR_SET_ATTRIBUTES
Definition: wimlib.h:2565
@ WIMLIB_ERR_INVALID_UTF16_STRING
Definition: wimlib.h:2540
@ WIMLIB_ERR_NOT_PERMITTED_TO_UNMOUNT
Definition: wimlib.h:2587
@ WIMLIB_ERR_INTEGRITY
Definition: wimlib.h:2525
@ WIMLIB_ERR_WIM_IS_ENCRYPTED
Definition: wimlib.h:2580
@ WIMLIB_ERR_RESOURCE_ORDER
Definition: wimlib.h:2564
@ WIMLIB_ERR_INVALID_COMPRESSION_TYPE
Definition: wimlib.h:2528
@ WIMLIB_ERR_ALREADY_LOCKED
Definition: wimlib.h:2518
@ WIMLIB_ERR_MQUEUE
Definition: wimlib.h:2547
@ WIMLIB_ERR_INVALID_PART_NUMBER
Definition: wimlib.h:2536
@ WIMLIB_ERR_WIM_IS_READONLY
Definition: wimlib.h:2577
@ WIMLIB_ERR_NOT_A_MOUNTPOINT
Definition: wimlib.h:2586
@ WIMLIB_ERR_CONCURRENT_MODIFICATION_DETECTED
Definition: wimlib.h:2594
@ WIMLIB_COMPRESSION_TYPE_NONE
No compression.
Definition: wimlib.h:505
@ WIMLIB_COMPRESSION_TYPE_LZMS
The LZMS compression format.
Definition: wimlib.h:570
@ WIMLIB_COMPRESSION_TYPE_LZX
The LZX compression format.
Definition: wimlib.h:547
@ WIMLIB_COMPRESSION_TYPE_XPRESS
The XPRESS compression format.
Definition: wimlib.h:525
int wimlib_delete_path(WIMStruct *wim, int image, const wimlib_tchar *path, int delete_flags)
Delete the path from the specified image of the wim.
int wimlib_update_image(WIMStruct *wim, int image, const struct wimlib_update_command *cmds, size_t num_cmds, int update_flags)
Update a WIM image by adding, deleting, and/or renaming files or directories.
int wimlib_add_tree(WIMStruct *wim, int image, const wimlib_tchar *fs_source_path, const wimlib_tchar *wim_target_path, int add_flags)
Add the file or directory tree at fs_source_path on the filesystem to the location wim_target_path wi...
int wimlib_add_empty_image(WIMStruct *wim, const wimlib_tchar *name, int *new_idx_ret)
Append an empty image to a WIMStruct.
int wimlib_reference_template_image(WIMStruct *wim, int new_image, WIMStruct *template_wim, int template_image, int flags)
Declare that a newly added image is mostly the same as a prior image, but captured at a later point i...
int wimlib_add_image_multisource(WIMStruct *wim, const struct wimlib_capture_source *sources, size_t num_sources, const wimlib_tchar *name, const wimlib_tchar *config_file, int add_flags)
This function is equivalent to wimlib_add_image() except it allows for multiple sources to be combine...
int wimlib_export_image(WIMStruct *src_wim, int src_image, WIMStruct *dest_wim, const wimlib_tchar *dest_name, const wimlib_tchar *dest_description, int export_flags)
Export an image, or all images, from a WIMStruct into another WIMStruct.
int wimlib_set_wim_info(WIMStruct *wim, const struct wimlib_wim_info *info, int which)
Set basic information about a WIM.
int wimlib_set_image_flags(WIMStruct *wim, int image, const wimlib_tchar *flags)
Change what is stored in the <FLAGS> element in the WIM XML document (usually something like "Core" o...
int wimlib_add_image(WIMStruct *wim, const wimlib_tchar *source, const wimlib_tchar *name, const wimlib_tchar *config_file, int add_flags)
Add an image to a WIMStruct from an on-disk directory tree or NTFS volume.
int wimlib_set_image_property(WIMStruct *wim, int image, const wimlib_tchar *property_name, const wimlib_tchar *property_value)
Since wimlib v1.8.3: add, modify, or remove a per-image property from the WIM's XML document.
int wimlib_delete_image(WIMStruct *wim, int image)
Delete an image, or all images, from a WIMStruct.
int wimlib_set_image_descripton(WIMStruct *wim, int image, const wimlib_tchar *description)
Change the description of a WIM image.
int wimlib_set_image_name(WIMStruct *wim, int image, const wimlib_tchar *name)
Change the name of a WIM image.
wimlib_update_op
The specific type of update to perform.
Definition: wimlib.h:2442
int wimlib_rename_path(WIMStruct *wim, int image, const wimlib_tchar *source_path, const wimlib_tchar *dest_path)
Rename the source_path to the dest_path in the specified image of the wim.
@ WIMLIB_UPDATE_OP_RENAME
Rename a file or directory tree in the image.
Definition: wimlib.h:2450
@ WIMLIB_UPDATE_OP_DELETE
Delete a file or directory tree from the image.
Definition: wimlib.h:2447
@ WIMLIB_UPDATE_OP_ADD
Add a new file or directory tree to the image.
Definition: wimlib.h:2444
int wimlib_unmount_image(const wimlib_tchar *dir, int unmount_flags)
Unmount a WIM image that was mounted using wimlib_mount_image().
int wimlib_unmount_image_with_progress(const wimlib_tchar *dir, int unmount_flags, wimlib_progress_func_t progfunc, void *progctx)
Same as wimlib_unmount_image(), but allows specifying a progress function.
int wimlib_mount_image(WIMStruct *wim, int image, const wimlib_tchar *dir, int mount_flags, const wimlib_tchar *staging_dir)
Mount an image from a WIM file on a directory read-only or read-write.
int wimlib_join_with_progress(const wimlib_tchar *const *swms, unsigned num_swms, const wimlib_tchar *output_path, int swm_open_flags, int wim_write_flags, wimlib_progress_func_t progfunc, void *progctx)
Same as wimlib_join(), but allows specifying a progress function.
int wimlib_reference_resources(WIMStruct *wim, WIMStruct **resource_wims, unsigned num_resource_wims, int ref_flags)
Similar to wimlib_reference_resource_files(), but operates at a lower level where the caller must ope...
int wimlib_reference_resource_files(WIMStruct *wim, const wimlib_tchar *const *resource_wimfiles_or_globs, unsigned count, int ref_flags, int open_flags)
Reference file data from other WIM files or split WIM parts.
int wimlib_split(WIMStruct *wim, const wimlib_tchar *swm_name, uint64_t part_size, int write_flags)
Split a WIM into multiple parts.
int wimlib_join(const wimlib_tchar *const *swms, unsigned num_swms, const wimlib_tchar *output_path, int swm_open_flags, int wim_write_flags)
Join a split WIM into a stand-alone (one-part) WIM.
wimlib_progress_status
Valid return values from user-provided progress functions (wimlib_progress_func_t).
Definition: wimlib.h:787
enum wimlib_progress_status(* wimlib_progress_func_t)(enum wimlib_progress_msg msg_type, union wimlib_progress_info *info, void *progctx)
A user-supplied function that will be called periodically during certain WIM operations.
Definition: wimlib.h:1253
wimlib_progress_msg
Possible values of the first parameter to the user-supplied wimlib_progress_func_t progress function.
Definition: wimlib.h:579
@ WIMLIB_PROGRESS_STATUS_CONTINUE
The operation should be continued.
Definition: wimlib.h:791
@ WIMLIB_PROGRESS_STATUS_ABORT
The operation should be aborted.
Definition: wimlib.h:795
@ WIMLIB_PROGRESS_MSG_SPLIT_BEGIN_PART
A wimlib_split() operation is in progress, and a new split part is about to be started.
Definition: wimlib.h:688
@ WIMLIB_PROGRESS_MSG_UNMOUNT_BEGIN
Starting to unmount an image.
Definition: wimlib.h:723
@ WIMLIB_PROGRESS_MSG_VERIFY_STREAMS
wimlib_verify_wim() is verifying file data integrity.
Definition: wimlib.h:742
@ WIMLIB_PROGRESS_MSG_EXTRACT_SPWM_PART_BEGIN
Starting to read a new part of a split pipable WIM over the pipe.
Definition: wimlib.h:609
@ WIMLIB_PROGRESS_MSG_EXTRACT_IMAGE_END
The image has been successfully extracted.
Definition: wimlib.h:622
@ WIMLIB_PROGRESS_MSG_REPLACE_FILE_IN_WIM
A file in the image is being replaced as a result of a wimlib_add_command without WIMLIB_ADD_FLAG_NO_...
Definition: wimlib.h:711
@ WIMLIB_PROGRESS_MSG_VERIFY_INTEGRITY
The contents of the WIM file are being checked against the integrity table.
Definition: wimlib.h:677
@ WIMLIB_PROGRESS_MSG_EXTRACT_STREAMS
File data is currently being extracted.
Definition: wimlib.h:605
@ WIMLIB_PROGRESS_MSG_END_VERIFY_IMAGE
wimlib_verify_wim() has finished verifying the metadata for an image.
Definition: wimlib.h:738
@ WIMLIB_PROGRESS_MSG_EXTRACT_TREE_BEGIN
One or more file or directory trees within a WIM image is about to be extracted.
Definition: wimlib.h:592
@ WIMLIB_PROGRESS_MSG_WRITE_METADATA_END
The per-image metadata has been written to the WIM file.
Definition: wimlib.h:663
@ WIMLIB_PROGRESS_MSG_HANDLE_ERROR
An error has occurred and the progress function is being asked whether to ignore the error or not.
Definition: wimlib.h:778
@ WIMLIB_PROGRESS_MSG_SPLIT_END_PART
A wimlib_split() operation is in progress, and a split part has been finished.
Definition: wimlib.h:692
@ WIMLIB_PROGRESS_MSG_WRITE_STREAMS
File data is currently being written to the WIM.
Definition: wimlib.h:654
@ WIMLIB_PROGRESS_MSG_RENAME
wimlib_overwrite() has successfully renamed the temporary file to the original WIM file,...
Definition: wimlib.h:670
@ WIMLIB_PROGRESS_MSG_TEST_FILE_EXCLUSION
The progress function is being asked whether a file should be excluded from capture or not.
Definition: wimlib.h:756
@ WIMLIB_PROGRESS_MSG_WIMBOOT_EXCLUDE
An image is being extracted with WIMLIB_EXTRACT_FLAG_WIMBOOT, and a file is being extracted normally ...
Definition: wimlib.h:719
@ WIMLIB_PROGRESS_MSG_BEGIN_VERIFY_IMAGE
wimlib_verify_wim() is starting to verify the metadata for an image.
Definition: wimlib.h:733
@ WIMLIB_PROGRESS_MSG_UPDATE_BEGIN_COMMAND
A WIM update command is about to be executed.
Definition: wimlib.h:698
@ WIMLIB_PROGRESS_MSG_EXTRACT_TREE_END
The files or directory trees have been successfully extracted.
Definition: wimlib.h:627
@ WIMLIB_PROGRESS_MSG_CALC_INTEGRITY
An integrity table is being calculated for the WIM being written.
Definition: wimlib.h:683
@ WIMLIB_PROGRESS_MSG_SCAN_DENTRY
A directory or file has been scanned.
Definition: wimlib.h:640
@ WIMLIB_PROGRESS_MSG_EXTRACT_METADATA
This message may be sent periodically (not necessarily for every file) while file and directory metad...
Definition: wimlib.h:617
@ WIMLIB_PROGRESS_MSG_DONE_WITH_FILE
wimlib has used a file's data for the last time (including all data streams, if it has multiple).
Definition: wimlib.h:729
@ WIMLIB_PROGRESS_MSG_UPDATE_END_COMMAND
A WIM update command has been executed.
Definition: wimlib.h:704
@ WIMLIB_PROGRESS_MSG_EXTRACT_FILE_STRUCTURE
This message may be sent periodically (not for every file) while files and directories are being crea...
Definition: wimlib.h:600
@ WIMLIB_PROGRESS_MSG_WRITE_METADATA_BEGIN
Per-image metadata is about to be written to the WIM file.
Definition: wimlib.h:658
@ WIMLIB_PROGRESS_MSG_EXTRACT_IMAGE_BEGIN
A WIM image is about to be extracted.
Definition: wimlib.h:585
@ WIMLIB_PROGRESS_MSG_SCAN_BEGIN
The directory or NTFS volume is about to be scanned for metadata.
Definition: wimlib.h:634
@ WIMLIB_PROGRESS_MSG_SCAN_END
The directory or NTFS volume has been successfully scanned.
Definition: wimlib.h:646
int wimlib_overwrite(WIMStruct *wim, int write_flags, unsigned num_threads)
Commit a WIMStruct to disk, updating its backing file.
int wimlib_write(WIMStruct *wim, const wimlib_tchar *path, int image, int write_flags, unsigned num_threads)
Persist a WIMStruct to a new on-disk WIM file.
int wimlib_set_output_pack_chunk_size(WIMStruct *wim, uint32_t chunk_size)
Similar to wimlib_set_output_chunk_size(), but set the chunk size for writing solid resources.
int wimlib_write_to_fd(WIMStruct *wim, int fd, int image, int write_flags, unsigned num_threads)
Same as wimlib_write(), but write the WIM directly to a file descriptor, which need not be seekable i...
int wimlib_set_output_chunk_size(WIMStruct *wim, uint32_t chunk_size)
Set a WIMStruct's output compression chunk size.
int wimlib_set_output_compression_type(WIMStruct *wim, enum wimlib_compression_type ctype)
Set a WIMStruct's output compression type.
int wimlib_set_output_pack_compression_type(WIMStruct *wim, enum wimlib_compression_type ctype)
Similar to wimlib_set_output_compression_type(), but set the compression type for writing solid resou...
Data for a WIMLIB_UPDATE_OP_ADD operation.
Definition: wimlib.h:2454
int add_flags
Bitwise OR of WIMLIB_ADD_FLAG_* flags.
Definition: wimlib.h:2467
wimlib_tchar * fs_source_path
Filesystem path to the file or directory tree to add.
Definition: wimlib.h:2456
wimlib_tchar * config_file
Path to capture configuration file to use, or NULL if not specified.
Definition: wimlib.h:2464
wimlib_tchar * wim_target_path
Destination path in the image.
Definition: wimlib.h:2460
An array of these structures is passed to wimlib_add_image_multisource() to specify the sources from ...
Definition: wimlib.h:1263
wimlib_tchar * wim_target_path
Destination path in the image.
Definition: wimlib.h:1270
long reserved
Reserved; set to 0.
Definition: wimlib.h:1273
wimlib_tchar * fs_source_path
Absolute or relative path to a file or directory on the external filesystem to be included in the ima...
Definition: wimlib.h:1266
Data for a WIMLIB_UPDATE_OP_DELETE operation.
Definition: wimlib.h:2471
wimlib_tchar * wim_path
The path to the file or directory within the image to delete.
Definition: wimlib.h:2474
int delete_flags
Bitwise OR of WIMLIB_DELETE_FLAG_* flags.
Definition: wimlib.h:2477
Structure passed to the wimlib_iterate_dir_tree() callback function.
Definition: wimlib.h:1520
size_t depth
Depth of this directory entry, where 0 is the root, 1 is the root's children, ...,...
Definition: wimlib.h:1535
struct wimlib_timespec last_access_time
Time this file was last accessed.
Definition: wimlib.h:1609
struct wimlib_object_id object_id
Definition: wimlib.h:1636
uint32_t unix_uid
The UNIX user ID of this file.
Definition: wimlib.h:1614
int32_t last_write_time_high
High 32 bits of the seconds portion of the last write timestamp, filled in if wimlib_timespec....
Definition: wimlib.h:1644
uint32_t reparse_tag
If the file is a reparse point (FILE_ATTRIBUTE_REPARSE_POINT set in the attributes),...
Definition: wimlib.h:1582
int32_t last_access_time_high
High 32 bits of the seconds portion of the last access timestamp, filled in if wimlib_timespec....
Definition: wimlib.h:1648
const char * security_descriptor
Pointer to the security descriptor for this file, in Windows SECURITY_DESCRIPTOR_RELATIVE format,...
Definition: wimlib.h:1540
uint32_t unix_rdev
The UNIX device ID (major and minor number) of this file.
Definition: wimlib.h:1632
uint64_t hard_link_group_id
A unique identifier for this file's inode.
Definition: wimlib.h:1600
uint64_t reserved[4]
Definition: wimlib.h:1652
uint32_t num_links
Number of links to this file's inode (hard links).
Definition: wimlib.h:1588
int32_t creation_time_high
High 32 bits of the seconds portion of the creation timestamp, filled in if wimlib_timespec....
Definition: wimlib.h:1640
struct wimlib_timespec last_write_time
Time this file was last written to.
Definition: wimlib.h:1606
const wimlib_tchar * filename
Name of the file, or NULL if this file is unnamed.
Definition: wimlib.h:1523
uint32_t attributes
File attributes, such as whether the file is a directory or not.
Definition: wimlib.h:1564
uint32_t num_named_streams
Number of named data streams this file has.
Definition: wimlib.h:1591
size_t security_descriptor_size
Size of the above security descriptor, in bytes.
Definition: wimlib.h:1543
struct wimlib_stream_entry streams[]
Variable-length array of streams that make up this file.
Definition: wimlib.h:1668
const wimlib_tchar * dos_name
8.3 name (or "DOS name", or "short name") of this file; or NULL if this file has no such name.
Definition: wimlib.h:1527
const wimlib_tchar * full_path
Full path to this file within the image.
Definition: wimlib.h:1531
uint32_t unix_gid
The UNIX group ID of this file.
Definition: wimlib.h:1619
uint32_t unix_mode
The UNIX mode of this file.
Definition: wimlib.h:1626
struct wimlib_timespec creation_time
Time this file was created.
Definition: wimlib.h:1603
int32_t reserved2
Definition: wimlib.h:1650
Since wimlib v1.9.1: an object ID, which is an extra piece of metadata that may be associated with a ...
Definition: wimlib.h:1509
uint8_t birth_volume_id[WIMLIB_GUID_LEN]
Definition: wimlib.h:1511
uint8_t object_id[WIMLIB_GUID_LEN]
Definition: wimlib.h:1510
uint8_t birth_object_id[WIMLIB_GUID_LEN]
Definition: wimlib.h:1512
uint8_t domain_id[WIMLIB_GUID_LEN]
Definition: wimlib.h:1513
Valid on messages WIMLIB_PROGRESS_MSG_DONE_WITH_FILE.
Definition: wimlib.h:1150
const wimlib_tchar * path_to_file
Path to the file whose data has been written to the WIM file, or is currently being asynchronously co...
Definition: wimlib.h:1169
Valid on messages WIMLIB_PROGRESS_MSG_HANDLE_ERROR.
Definition: wimlib.h:1216
bool will_ignore
Indicates whether the error will be ignored or not.
Definition: wimlib.h:1230
const wimlib_tchar * path
Path to the file for which the error occurred, or NULL if not relevant.
Definition: wimlib.h:1220
int error_code
The wimlib error code associated with the error.
Definition: wimlib.h:1223
Valid on messages WIMLIB_PROGRESS_MSG_VERIFY_INTEGRITY and WIMLIB_PROGRESS_MSG_CALC_INTEGRITY.
Definition: wimlib.h:1058
uint64_t completed_bytes
The number of bytes that have been checksummed so far.
Definition: wimlib.h:1066
uint32_t total_chunks
The number of individually checksummed "chunks" the integrity-checked region is divided into.
Definition: wimlib.h:1070
uint64_t total_bytes
The number of bytes in the WIM file that are covered by integrity checks.
Definition: wimlib.h:1062
uint32_t completed_chunks
The number of chunks that have been checksummed so far.
Definition: wimlib.h:1074
uint32_t chunk_size
The size of each individually checksummed "chunk" in the integrity-checked region.
Definition: wimlib.h:1078
const wimlib_tchar * filename
For WIMLIB_PROGRESS_MSG_VERIFY_INTEGRITY messages, this is the path to the WIM file being checked.
Definition: wimlib.h:1082
Valid on messages WIMLIB_PROGRESS_MSG_RENAME.
Definition: wimlib.h:1031
const wimlib_tchar * from
Name of the temporary file that the WIM was written to.
Definition: wimlib.h:1033
const wimlib_tchar * to
Name of the original WIM file to which the temporary file is being renamed.
Definition: wimlib.h:1037
Valid on messages WIMLIB_PROGRESS_MSG_REPLACE_FILE_IN_WIM
Definition: wimlib.h:1116
const wimlib_tchar * path_in_wim
Path to the file in the image that is being replaced
Definition: wimlib.h:1118
Valid on messages WIMLIB_PROGRESS_MSG_SCAN_BEGIN, WIMLIB_PROGRESS_MSG_SCAN_DENTRY,...
Definition: wimlib.h:862
const wimlib_tchar * wim_target_path
Target path in the image.
Definition: wimlib.h:909
uint64_t num_bytes_scanned
The number of bytes of file data detected so far, not counting excluded/unsupported files.
Definition: wimlib.h:928
const wimlib_tchar * cur_path
Path to the file (or directory) that has been scanned, valid on WIMLIB_PROGRESS_MSG_SCAN_DENTRY.
Definition: wimlib.h:874
uint64_t num_nondirs_scanned
The number of non-directories scanned so far, not counting excluded/unsupported files.
Definition: wimlib.h:924
uint64_t num_dirs_scanned
The number of directories scanned so far, not counting excluded/unsupported files.
Definition: wimlib.h:920
const wimlib_tchar * symlink_target
For WIMLIB_PROGRESS_MSG_SCAN_DENTRY and a status of WIMLIB_SCAN_DENTRY_FIXED_SYMLINK or WIMLIB_SCAN_D...
Definition: wimlib.h:915
@ WIMLIB_SCAN_DENTRY_UNSUPPORTED
File is being excluded from capture due to being of an unsupported type.
Definition: wimlib.h:888
@ WIMLIB_SCAN_DENTRY_OK
File looks okay and will be captured.
Definition: wimlib.h:880
@ WIMLIB_SCAN_DENTRY_EXCLUDED
File is being excluded from capture due to the capture configuration.
Definition: wimlib.h:884
@ WIMLIB_SCAN_DENTRY_NOT_FIXED_SYMLINK
Reparse-point fixups are enabled, but the file is an absolute symbolic link or junction that does not...
Definition: wimlib.h:902
@ WIMLIB_SCAN_DENTRY_FIXED_SYMLINK
The file is an absolute symbolic link or junction that points into the capture directory,...
Definition: wimlib.h:896
enum wimlib_progress_info::wimlib_progress_info_scan::@0 status
Dentry scan status, valid on WIMLIB_PROGRESS_MSG_SCAN_DENTRY.
const wimlib_tchar * source
Top-level directory being scanned; or, when capturing an NTFS volume with WIMLIB_ADD_FLAG_NTFS,...
Definition: wimlib.h:868
Valid on messages WIMLIB_PROGRESS_MSG_SPLIT_BEGIN_PART and WIMLIB_PROGRESS_MSG_SPLIT_END_PART.
Definition: wimlib.h:1087
uint64_t total_bytes
Total size of the original WIM's file and metadata resources (compressed).
Definition: wimlib.h:1090
unsigned cur_part_number
Number of the split WIM part that is about to be started (WIMLIB_PROGRESS_MSG_SPLIT_BEGIN_PART) or ha...
Definition: wimlib.h:1100
uint64_t completed_bytes
Number of bytes of file and metadata resources that have been copied out of the original WIM so far.
Definition: wimlib.h:1095
unsigned total_parts
Total number of split WIM parts that are being written.
Definition: wimlib.h:1103
wimlib_tchar * part_name
Name of the split WIM part that is about to be started (WIMLIB_PROGRESS_MSG_SPLIT_BEGIN_PART) or has ...
Definition: wimlib.h:1112
Valid on messages WIMLIB_PROGRESS_MSG_TEST_FILE_EXCLUSION.
Definition: wimlib.h:1190
bool will_exclude
Indicates whether the file or directory will be excluded from capture or not.
Definition: wimlib.h:1212
const wimlib_tchar * path
Path to the file for which exclusion is being tested.
Definition: wimlib.h:1204
Valid on messages WIMLIB_PROGRESS_MSG_UNMOUNT_BEGIN.
Definition: wimlib.h:1131
uint32_t unmount_flags
Flags passed to wimlib_unmount_image().
Definition: wimlib.h:1146
const wimlib_tchar * mountpoint
Path to directory being unmounted
Definition: wimlib.h:1133
uint32_t mount_flags
Flags that were passed to wimlib_mount_image() when the mountpoint was set up.
Definition: wimlib.h:1143
const wimlib_tchar * mounted_wim
Path to WIM file being unmounted
Definition: wimlib.h:1136
uint32_t mounted_image
1-based index of image being unmounted.
Definition: wimlib.h:1139
Valid on messages WIMLIB_PROGRESS_MSG_UPDATE_BEGIN_COMMAND and WIMLIB_PROGRESS_MSG_UPDATE_END_COMMAND...
Definition: wimlib.h:1042
const struct wimlib_update_command * command
Pointer to the update command that will be executed or has just been executed.
Definition: wimlib.h:1045
size_t total_commands
Number of update commands that are being executed as part of this call to wimlib_update_image().
Definition: wimlib.h:1053
size_t completed_commands
Number of update commands that have been completed so far.
Definition: wimlib.h:1049
Valid on messages WIMLIB_PROGRESS_MSG_BEGIN_VERIFY_IMAGE and WIMLIB_PROGRESS_MSG_END_VERIFY_IMAGE.
Definition: wimlib.h:1174
const wimlib_tchar * wimfile
Definition: wimlib.h:1175
uint32_t current_image
Definition: wimlib.h:1177
uint32_t total_images
Definition: wimlib.h:1176
Valid on messages WIMLIB_PROGRESS_MSG_VERIFY_STREAMS.
Definition: wimlib.h:1181
uint64_t total_bytes
Definition: wimlib.h:1184
uint64_t completed_streams
Definition: wimlib.h:1185
uint64_t total_streams
Definition: wimlib.h:1183
uint64_t completed_bytes
Definition: wimlib.h:1186
const wimlib_tchar * wimfile
Definition: wimlib.h:1182
Valid on messages WIMLIB_PROGRESS_MSG_WIMBOOT_EXCLUDE
Definition: wimlib.h:1122
const wimlib_tchar * path_in_wim
Path to the file in the image
Definition: wimlib.h:1124
const wimlib_tchar * extraction_path
Path to which the file is being extracted
Definition: wimlib.h:1127
Valid on the message WIMLIB_PROGRESS_MSG_WRITE_STREAMS.
Definition: wimlib.h:809
uint64_t completed_bytes
The number of bytes of file data that have been written so far.
Definition: wimlib.h:831
uint64_t total_bytes
An upper bound on the number of bytes of file data that will be written.
Definition: wimlib.h:816
int32_t compression_type
The compression type being used, as one of the wimlib_compression_type constants.
Definition: wimlib.h:844
uint32_t total_parts
The number of on-disk WIM files from which file data is being exported into the output WIM file.
Definition: wimlib.h:849
uint64_t completed_compressed_bytes
Since wimlib v1.13.4: Like completed_bytes, but counts the compressed size.
Definition: wimlib.h:856
uint64_t total_streams
An upper bound on the number of distinct file data "blobs" that will be written.
Definition: wimlib.h:824
uint32_t num_threads
The number of threads being used for data compression; or, if no compression is being performed,...
Definition: wimlib.h:840
uint32_t completed_parts
This is currently broken and will always be 0.
Definition: wimlib.h:852
uint64_t completed_streams
The number of distinct file data "blobs" that have been written so far.
Definition: wimlib.h:836
Data for a WIMLIB_UPDATE_OP_RENAME operation.
Definition: wimlib.h:2481
wimlib_tchar * wim_target_path
The path to the destination file or directory within the image.
Definition: wimlib.h:2487
wimlib_tchar * wim_source_path
The path to the source file or directory within the image.
Definition: wimlib.h:2484
int rename_flags
Reserved; set to 0.
Definition: wimlib.h:2490
Information about a "blob", which is a fixed length sequence of binary data.
Definition: wimlib.h:1419
uint32_t reserved_flags
Definition: wimlib.h:1465
uint32_t reference_count
If this blob is not missing, then this is the number of times this blob is referenced over all images...
Definition: wimlib.h:1445
uint64_t raw_resource_uncompressed_size
If this blob is located in a solid WIM resource, then this is the uncompressed size of that solid res...
Definition: wimlib.h:1477
uint8_t sha1_hash[20]
The SHA-1 message digest of the blob's uncompressed contents.
Definition: wimlib.h:1436
uint32_t is_free
Definition: wimlib.h:1454
uint64_t uncompressed_size
If this blob is not missing, then this is the uncompressed size of this blob in bytes.
Definition: wimlib.h:1423
uint64_t raw_resource_offset_in_wim
If this blob is located in a solid WIM resource, then this is the offset of that solid resource withi...
Definition: wimlib.h:1469
uint64_t compressed_size
If this blob is located in a non-solid WIM resource, then this is the compressed size of that resourc...
Definition: wimlib.h:1427
uint32_t is_compressed
1 iff this blob is located in a non-solid compressed WIM resource.
Definition: wimlib.h:1449
uint64_t reserved[1]
Definition: wimlib.h:1479
uint32_t is_missing
1 iff a blob with this hash was not found in the blob lookup table of the WIMStruct.
Definition: wimlib.h:1460
uint64_t offset
If this blob is located in a non-solid WIM resource, then this is the offset of that resource within ...
Definition: wimlib.h:1433
uint32_t is_spanned
Definition: wimlib.h:1455
uint32_t part_number
If this blob is located in a WIM resource, then this is the part number of the WIM file containing it...
Definition: wimlib.h:1440
uint32_t is_metadata
1 iff this blob contains the metadata for an image.
Definition: wimlib.h:1452
uint32_t packed
1 iff this blob is located in a solid resource.
Definition: wimlib.h:1463
uint64_t raw_resource_compressed_size
If this blob is located in a solid WIM resource, then this is the compressed size of that solid resou...
Definition: wimlib.h:1473
Information about a stream of a particular file in the WIM.
Definition: wimlib.h:1493
struct wimlib_resource_entry resource
Info about this stream's data, such as its hash and size if known.
Definition: wimlib.h:1499
uint64_t reserved[4]
Definition: wimlib.h:1501
const wimlib_tchar * stream_name
Name of the stream, or NULL if the stream is unnamed.
Definition: wimlib.h:1496
Specification of an update to perform on a WIM image.
Definition: wimlib.h:2494
struct wimlib_delete_command delete_
Definition: wimlib.h:2500
struct wimlib_add_command add
Definition: wimlib.h:2499
struct wimlib_rename_command rename
Definition: wimlib.h:2502
enum wimlib_update_op op
Definition: wimlib.h:2496
General information about a WIM file.
Definition: wimlib.h:1317
uint32_t is_marked_readonly
1 iff the "readonly" flag is set in this WIM's header
Definition: wimlib.h:1369
uint32_t has_integrity_table
1 iff this WIM file has an integrity table.
Definition: wimlib.h:1354
uint32_t reserved[9]
Definition: wimlib.h:1386
uint32_t wim_version
The version of the WIM file format used in this WIM file.
Definition: wimlib.h:1331
uint32_t is_readonly
1 iff this WIM file is considered readonly for any reason (e.g.
Definition: wimlib.h:1363
uint32_t spanned
1 iff the "spanned" flag is set in this WIM's header
Definition: wimlib.h:1372
uint32_t resource_only
1 iff the "resource only" flag is set in this WIM's header
Definition: wimlib.h:1381
uint32_t chunk_size
The default compression chunk size of resources in this WIM file.
Definition: wimlib.h:1335
uint32_t has_rpfix
1 iff the "reparse point fix" flag is set in this WIM's header
Definition: wimlib.h:1366
uint32_t image_count
The number of images in this WIM file.
Definition: wimlib.h:1324
uint32_t opened_from_file
1 iff this info struct is for a WIMStruct that has a backing file.
Definition: wimlib.h:1358
uint16_t total_parts
For split WIMs, the total number of parts in the split WIM; otherwise 1.
Definition: wimlib.h:1343
uint32_t boot_index
The 1-based index of the bootable image in this WIM file, or 0 if no image is bootable.
Definition: wimlib.h:1328
uint16_t part_number
For split WIMs, the 1-based index of this part within the split WIM; otherwise 1.
Definition: wimlib.h:1339
uint32_t metadata_only
1 iff the "metadata only" flag is set in this WIM's header
Definition: wimlib.h:1378
uint32_t pipable
1 iff this WIM file is pipable (see WIMLIB_WRITE_FLAG_PIPABLE).
Definition: wimlib.h:1384
uint32_t reserved_flags
Definition: wimlib.h:1385
uint8_t guid[WIMLIB_GUID_LEN]
The globally unique identifier for this WIM.
Definition: wimlib.h:1321
uint32_t write_in_progress
1 iff the "write in progress" flag is set in this WIM's header
Definition: wimlib.h:1375
uint64_t total_bytes
The size of this WIM file in bytes, excluding the XML data and integrity table.
Definition: wimlib.h:1351
int32_t compression_type
The default compression type of resources in this WIM file, as one of the wimlib_compression_type con...
Definition: wimlib.h:1347
A pointer to this union is passed to the user-supplied wimlib_progress_func_t progress function.
Definition: wimlib.h:804
struct wimlib_progress_info::wimlib_progress_info_test_file_exclusion test_file_exclusion
struct wimlib_progress_info::wimlib_progress_info_update update
struct wimlib_progress_info::wimlib_progress_info_handle_error handle_error
struct wimlib_progress_info::wimlib_progress_info_replace replace
struct wimlib_progress_info::wimlib_progress_info_verify_streams verify_streams
struct wimlib_progress_info::wimlib_progress_info_extract extract
struct wimlib_progress_info::wimlib_progress_info_rename rename
struct wimlib_progress_info::wimlib_progress_info_scan scan
struct wimlib_progress_info::wimlib_progress_info_write_streams write_streams
struct wimlib_progress_info::wimlib_progress_info_unmount unmount
struct wimlib_progress_info::wimlib_progress_info_integrity integrity
struct wimlib_progress_info::wimlib_progress_info_split split
struct wimlib_progress_info::wimlib_progress_info_wimboot_exclude wimboot_exclude
struct wimlib_progress_info::wimlib_progress_info_done_with_file done_with_file
struct wimlib_progress_info::wimlib_progress_info_verify_image verify_image