efi: define struct efi_guid
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 30 Aug 2024 12:34:31 +0000 (13:34 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 12 Sep 2024 15:35:37 +0000 (17:35 +0200)
This let's us forward declare efi_guid_t in the UUID code without
pulling in efi.h

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
include/efi.h
tools/eficapsule.h

index d5af213..84640cf 100644 (file)
@@ -74,7 +74,7 @@ struct efi_device_path {
  * struct { u32 a; u16; b; u16 c; u8 d[8]; }; which is 4-byte
  * aligned.
  */
-typedef struct {
+typedef struct efi_guid {
        u8 b[16];
 } efi_guid_t __attribute__((aligned(4)));
 
index 6efd07d..97d0775 100644 (file)
@@ -24,7 +24,7 @@
 
 #define ARRAY_SIZE(x)          (sizeof(x) / sizeof((x)[0]))
 
-typedef struct {
+typedef struct efi_guid {
        uint8_t b[16];
 } efi_guid_t __aligned(8);