X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fxml.h;h=e9c044afd8854076a3e9ec10ce72aa6be365bed8;hb=5695db8f27535e50a8159a226902687fe32ffe9a;hp=ce82b14a44411310ee24dd92b873246ad17f345d;hpb=61db93f82eca3fe9f7676355c709c58cc425a6ad;p=wimlib diff --git a/include/wimlib/xml.h b/include/wimlib/xml.h index ce82b14a..e9c044af 100644 --- a/include/wimlib/xml.h +++ b/include/wimlib/xml.h @@ -5,11 +5,14 @@ #include "wimlib/file_io.h" struct wim_info; -struct resource_entry; +struct wim_reshdr; extern u64 wim_info_get_total_bytes(const struct wim_info *info); +extern u64 +wim_info_get_image_hard_link_bytes(const struct wim_info *info, int image); + extern u64 wim_info_get_image_total_bytes(const struct wim_info *info, int image); @@ -48,7 +51,7 @@ read_wim_xml_data(WIMStruct *wim); extern int write_wim_xml_data(WIMStruct *wim, int image, - u64 total_bytes, struct resource_entry *out_res_entry, + u64 total_bytes, struct wim_reshdr *out_reshdr, int write_resource_flags); extern void @@ -57,11 +60,9 @@ libxml_global_init(void); extern void libxml_global_cleanup(void); -#ifdef ENABLE_CUSTOM_MEMORY_ALLOCATOR extern void xml_set_memory_allocator(void *(*malloc_func)(size_t), void (*free_func)(void *), void *(*realloc_func)(void *, size_t)); -#endif #endif