mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
fundamental: Add userspace efi_guid_equal
This commit is contained in:
parent
24677c6787
commit
e266359689
@ -2,7 +2,10 @@
|
||||
#pragma once
|
||||
|
||||
#if !SD_BOOT
|
||||
# include <stdbool.h>
|
||||
# include <stdint.h>
|
||||
# include <string.h>
|
||||
|
||||
/* Matches EFI API definition of the same structure for userspace */
|
||||
typedef struct {
|
||||
uint32_t Data1;
|
||||
@ -11,6 +14,10 @@ typedef struct {
|
||||
uint8_t Data4[8];
|
||||
} EFI_GUID;
|
||||
|
||||
static inline bool efi_guid_equal(const EFI_GUID *a, const EFI_GUID *b) {
|
||||
return memcmp(a, b, sizeof(EFI_GUID)) == 0;
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
EFI_GUID SignatureOwner;
|
||||
uint8_t SignatureData[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user