How ebiggers/wimlib works
Main Components
a. Core Library Components:
• Compression Engine (src/compress*)
• Decompression Engine (src/decompress*)
• File System Handlers
• Windows Implementation
• UNIX Implementation
• NTFS-3G Implementation
• WIM Format Handler (src/wim.c)
• XML Processing (src/xml*)
b. External Interfaces:
• Public API (include/wimlib.h)
• Command-line Interface (wimlib-imagex)
• FUSE Mount Interface
• NTFS-3G Interface
Component Relationships
[Applications/Tools Layer]
• wimlib-imagex (CLI) | External Programs
• ↓
[Public API Layer]
• wimlib.h Interface
• ↓
[Core Processing Layer]
• ┌─────────────────────────────────────┐
• WIM Format Handler │
• ↓ ↓ │
• Compression Decompression │
• (LZX/XPRESS/LZMS) │
• ┘
• ↓
[Platform Abstraction Layer]
• ┌─────────────┬────────────┬──────────┐
• Windows │ UNIX │ NTFS-3G │
• Implementation│ Implementation│ Support│
• ┴────────────┴──────────┘
• ↓
[Operating System Layer]
• Windows | Linux | macOS | FreeBSD
Important Elements to Highlight
a. Compression Features:
• Multiple compression formats (LZX, XPRESS, LZMS)
• Parallel compression support
• Solid compression mode
b. Cross-Platform Support:
• Windows-specific features
• UNIX-specific features
• NTFS-specific handling
c. File System Operations:
• Capture
• Apply
• Mount
• Update
• Extract
Special Notes
• Separation between platform-specific and platform-independent code
• Relationship with external dependencies (FUSE, NTFS-3G)
• Test coverage paths
• API stability boundaries