*
* Note 2: although this is the top-level data structure in wimlib, there do
* exist cases in which a WIMStruct is not standalone:
- * - streams have been referenced from another WIMStruct
+ * - blobs have been referenced from another WIMStruct
* - an image has been imported into this WIMStruct from another
* (as this references the metadata rather than copies it)
*
/*
* Return true if and only if the WIM contains image metadata (actual directory
- * trees, not just a collection of streams and their checksums).
+ * trees, not just a collection of blobs and their checksums).
*
* See the description of the 'image_metadata' field. Note that we return true
* when the image count is 0 because it could be a WIM with 0 images. It's only
return (wim->hdr.magic == PWM_MAGIC);
}
-extern int
-set_wim_hdr_cflags(int ctype, struct wim_header *hdr);
+extern bool
+wim_has_solid_resources(const WIMStruct *wim);
-extern int
-init_wim_header(struct wim_header *hdr, int ctype, u32 chunk_size);
+extern void
+set_wim_hdr_cflags(enum wimlib_compression_type ctype, struct wim_header *hdr);
+
+extern void
+init_wim_header(struct wim_header *hdr,
+ enum wimlib_compression_type ctype, u32 chunk_size);
extern int
read_wim_header(WIMStruct *wim, struct wim_header *hdr);