4 #include "wimlib/types.h"
6 /*****************************************************************************/
10 extern struct wim_xml_info *
11 xml_new_info_struct(void);
14 xml_free_info_struct(struct wim_xml_info *info);
16 /*****************************************************************************/
19 xml_get_image_count(const struct wim_xml_info *info);
22 xml_get_total_bytes(const struct wim_xml_info *info);
25 xml_get_image_total_bytes(const struct wim_xml_info *info, int image);
28 xml_get_image_hard_link_bytes(const struct wim_xml_info *info, int image);
31 xml_get_wimboot(const struct wim_xml_info *info, int image);
34 xml_get_windows_build_number(const struct wim_xml_info *info, int image);
37 xml_set_wimboot(struct wim_xml_info *info, int image);
39 /*****************************************************************************/
42 xml_update_image_info(WIMStruct *wim, int image);
45 xml_add_image(struct wim_xml_info *info, const tchar *name);
48 xml_export_image(const struct wim_xml_info *src_info, int src_image,
49 struct wim_xml_info *dest_info, const tchar *dest_image_name,
50 const tchar *dest_image_description, bool wimboot);
53 xml_delete_image(struct wim_xml_info *info, int image);
57 xml_print_image_info(struct wim_xml_info *info, int image);
59 /*****************************************************************************/
63 #define WIM_TOTALBYTES_USE_EXISTING ((u64)(-1))
64 #define WIM_TOTALBYTES_OMIT ((u64)(-2))
67 read_wim_xml_data(WIMStruct *wim);
70 write_wim_xml_data(WIMStruct *wim, int image,
71 u64 total_bytes, struct wim_reshdr *out_reshdr,
72 int write_resource_flags);
74 /*****************************************************************************/
77 xml_global_init(void);
80 xml_global_cleanup(void);
83 xml_set_memory_allocator(void *(*malloc_func)(size_t),
84 void (*free_func)(void *),
85 void *(*realloc_func)(void *, size_t));
87 #endif /* _WIMLIB_XML_H */