]> wimlib.net Git - wimlib/blobdiff - include/wimlib/header.h
Add GUID helper functions
[wimlib] / include / wimlib / header.h
index e696ce51dfe939143cf783f62159b919027210e3..894bd22591897491f2089ce75c4bd0dacb64939f 100644 (file)
@@ -3,12 +3,10 @@
 
 #include <limits.h>
 
+#include "wimlib/guid.h"
 #include "wimlib/resource.h"
 #include "wimlib/types.h"
 
-/* Length of "Globally Unique ID" field in WIM header.  */
-#define WIM_GUID_LEN    16
-
 /* Length of the WIM header on disk.  wimlib currently requires that the header
  * be exactly this size.  */
 #define WIM_HEADER_DISK_SIZE 208
@@ -72,7 +70,7 @@ struct wim_header_disk {
 
        /* +0x18: Globally unique identifier for the WIM file.  Basically a
         * bunch of random bytes.  */
-       u8 guid[WIM_GUID_LEN];
+       u8 guid[GUID_SIZE];
 
        /* +0x28: Number of this WIM part in the split WIM file, indexed from 1,
         * or 1 if the WIM is not split.  */
@@ -123,7 +121,7 @@ struct wim_header {
        u32 wim_version;
        u32 flags;
        u32 chunk_size;
-       u8 guid[WIM_GUID_LEN];
+       u8 guid[GUID_SIZE];
        u16 part_number;
        u16 total_parts;
        u32 image_count;