X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fxml.h;h=5eb24c9c6a139869810580cba4af45c30d48c23f;hb=2d0c0153db70123a446b06e1a8b1db5f9c41632d;hp=fb296000c855edc48a32ce4cd6c02570615661d6;hpb=e2bc2608477392685affc2d8e0a46088a8e1ef1c;p=wimlib diff --git a/src/xml.h b/src/xml.h index fb296000..5eb24c9c 100644 --- a/src/xml.h +++ b/src/xml.h @@ -6,14 +6,14 @@ /* A struct wim_info structure corresponds to the entire XML data for a WIM file. */ struct wim_info { u64 total_bytes; - u64 num_images; - /* Array of WIMImageInfos, one for each image in the WIM that is + 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; }; /* xml.c */ -extern int xml_export_image(const struct wim_info *old_wim_info, int image, +extern int xml_export_image(const struct wim_info *old_wim_info, int image, struct wim_info **new_wim_info_p, const char *dest_image_name, const char *dest_image_description); @@ -24,18 +24,17 @@ extern void xml_update_image_info(WIMStruct *w, int image); 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); +extern int xml_add_image(WIMStruct *w, const char *name); extern void free_wim_info(struct wim_info *info); extern void print_image_info(const struct wim_info *wim_info, int image); -extern int read_xml_data(FILE *fp, const struct resource_entry *res, +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, - u64 total_bytes); + u64 total_bytes, struct resource_entry *out_res_entry); static inline u64 wim_info_get_total_bytes(const struct wim_info *info) {