mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
sd-boot: Add missing includes
Let's make all headers self-sufficient by including the necessary EFI headers in the headers themselves.
This commit is contained in:
parent
9a383acadd
commit
47381f8f64
|
@ -3,6 +3,7 @@
|
|||
#include <efi.h>
|
||||
#include <efilib.h>
|
||||
|
||||
#include "disk.h"
|
||||
#include "util.h"
|
||||
|
||||
EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, CHAR16 uuid[static 37]) {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, CHAR16 uuid[static 37]);
|
||||
|
|
|
@ -5,4 +5,6 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
EFI_STATUS graphics_mode(BOOLEAN on);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
#define SETUP_MAGIC 0x53726448 /* "HdrS" */
|
||||
|
||||
struct setup_header {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
EFI_STATUS tpm_log_event(UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHAR16 *description);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
EFI_STATUS pe_memory_locate_sections(CHAR8 *base,
|
||||
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
|
||||
EFI_STATUS pe_file_locate_sections(EFI_FILE *dir, CHAR16 *path,
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
BOOLEAN shim_loaded(void);
|
||||
|
||||
BOOLEAN secure_boot_enabled(void);
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <efi.h>
|
||||
|
||||
EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background);
|
||||
|
|
Loading…
Reference in a new issue