[Settings] Expose SMBIOS via settings API
[people/mcb30/gpxe.git] / src / include / gpxe / uuid.h
1 #ifndef _GPXE_UUID_H
2 #define _GPXE_UUID_H
3
4 /** @file
5  *
6  * Universally unique IDs
7  */
8
9 #include <stdint.h>
10
11 /** A universally unique ID */
12 union uuid {
13         /** Canonical form (00000000-0000-0000-0000-000000000000) */
14         struct {
15                 /** 8 hex digits, little-endian */
16                 uint32_t a;
17                 /** 2 hex digits, little-endian */
18                 uint16_t b;
19                 /** 2 hex digits, little-endian */
20                 uint16_t c;
21                 /** 2 hex digits, big-endian */
22                 uint16_t d;
23                 /** 12 hex digits, big-endian */
24                 uint8_t e[6];
25         } canonical;
26         uint8_t raw[16];
27 };
28
29 extern char * uuid_ntoa ( union uuid *uuid );
30
31 #endif /* _GPXE_UUID_H */