Add wim_info_get_wimboot()
authorEric Biggers <ebiggers3@gmail.com>
Fri, 18 Apr 2014 05:51:31 +0000 (00:51 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 18 Apr 2014 06:23:11 +0000 (01:23 -0500)
include/wimlib/xml.h
src/xml.c

index 18c60b9..5bb16f2 100644 (file)
@@ -22,6 +22,9 @@ wim_info_get_num_images(const struct wim_info *info);
 extern void
 wim_info_set_wimboot(struct wim_info *info, int image, bool value);
 
+extern bool
+wim_info_get_wimboot(const struct wim_info *info, int image);
+
 extern int
 xml_export_image(const struct wim_info *old_wim_info, int image,
                 struct wim_info **new_wim_info_p,
index dd7de12..9ef6f65 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -174,6 +174,12 @@ wim_info_set_wimboot(struct wim_info *info, int image, bool value)
        info->images[image - 1].wimboot = value;
 }
 
+bool
+wim_info_get_wimboot(const struct wim_info *info, int image)
+{
+       return info->images[image - 1].wimboot;
+}
+
 /* Architecture constants are from w64 mingw winnt.h  */
 #define PROCESSOR_ARCHITECTURE_INTEL 0
 #define PROCESSOR_ARCHITECTURE_MIPS 1