From f61da8be06fdfebc598cba783e78117319231140 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 3 Mar 2024 08:44:42 +0000 Subject: build changes --- kjarna/efi/protocol.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 kjarna/efi/protocol.c (limited to 'kjarna/efi/protocol.c') diff --git a/kjarna/efi/protocol.c b/kjarna/efi/protocol.c deleted file mode 100644 index 6bf8123..0000000 --- a/kjarna/efi/protocol.c +++ /dev/null @@ -1,33 +0,0 @@ -#include - -#include "kjarna_efi.h" - -void *efi_get_protocol(EFI_HANDLE handle, EFI_GUID *guid) -{ - void *protocol; - - efi_errno = gBS->OpenProtocol( - handle, - guid, - &protocol, - efi_context->handle, - nullptr, - EFI_OPEN_PROTOCOL_GET_PROTOCOL); - - if (EFI_ERROR(efi_errno)) - { - return nullptr; - } - - return protocol; -} - -void efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid) -{ - efi_errno = gBS->CloseProtocol( - handle, - guid, - efi_context->handle, - nullptr); -} - -- cgit v1.3.1-1-g115d