struct wim_info {
u64 total_bytes;
u64 num_images;
- /* Array of WIMImageInfos, one for each image in the WIM that is
+ /* Array of `struct image_info's, one for each image in the WIM that is
* mentioned in the XML data. */
struct image_info *images;
};
extern void xml_delete_image(struct wim_info **wim_info_p, int image);
-extern int xml_add_image(WIMStruct *w, struct dentry *root_dentry,
- const char *name, const char *description,
- const char *flags);
+extern int xml_add_image(WIMStruct *w, const char *name);
extern void free_wim_info(struct wim_info *info);
extern int read_xml_data(FILE *fp, const struct resource_entry *res,
u8 **xml_data_ret, struct wim_info **info_ret);
-extern int write_xml_data(const struct wim_info *wim_info, int image, FILE *out);
+extern int write_xml_data(const struct wim_info *wim_info, int image, FILE *out,
+ u64 total_bytes);
static inline u64 wim_info_get_total_bytes(const struct wim_info *info)
{