]> wimlib.net Git - wimlib/blobdiff - src/xml.h
Add wimlib_global_{init,cleanup}()
[wimlib] / src / xml.h
index f9999e905e8403e35259c5a3721de4b21d7eb313..54993cba13e935f66022010011fbf279932ec70d 100644 (file)
--- 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;
@@ -34,7 +34,10 @@ 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);
+
+extern void libxml_global_init();
+extern void libxml_global_cleanup();
 
 static inline u64 wim_info_get_total_bytes(const struct wim_info *info)
 {