/* A struct wim_info structure corresponds to the entire XML data for a WIM file. */
struct wim_info {
u64 total_bytes;
- u64 num_images;
+ int num_images;
/* Array of `struct image_info's, one for each image in the WIM that is
* mentioned in the XML data. */
struct image_info *images;
u8 **xml_data_ret, struct wim_info **info_ret);
extern int write_xml_data(const struct wim_info *wim_info, int image, FILE *out,
- u64 total_bytes);
+ u64 total_bytes, struct resource_entry *out_res_entry);
+
+extern void libxml_global_init();
+extern void libxml_global_cleanup();
static inline u64 wim_info_get_total_bytes(const struct wim_info *info)
{