X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fxml.h;h=54993cba13e935f66022010011fbf279932ec70d;hp=5a875758b42b653c7cfd7a67185d54da0ac3407b;hb=7bde3fc590afbdef8f71cd7f8ccbd24172bffc63;hpb=e6227e4978dd41e0726ef1b54713089d343b57de diff --git a/src/xml.h b/src/xml.h index 5a875758..54993cba 100644 --- a/src/xml.h +++ b/src/xml.h @@ -6,7 +6,7 @@ /* 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; @@ -36,6 +36,9 @@ extern int read_xml_data(FILE *fp, const struct resource_entry *res, extern int write_xml_data(const struct wim_info *wim_info, int image, FILE *out, 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) { return info->total_bytes;