You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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