From 2fa4e64d36e14e77d9e8ed547d2cc96b6c2ee7de Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Fri, 2 Feb 2024 01:01:44 +0000 Subject: - don't typedef away function pointers - cleanups --- api/loader/efi/shim.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'api') diff --git a/api/loader/efi/shim.h b/api/loader/efi/shim.h index b91d9fd..8901077 100644 --- a/api/loader/efi/shim.h +++ b/api/loader/efi/shim.h @@ -25,12 +25,12 @@ struct efi_loader_image UINTN buffer_size; }; -typedef EFI_STATUS (EFIAPI *efi_image_func)(struct efi_loader_image *image); -typedef EFI_STATUS (EFIAPI *efi_page_alloc_func)( +typedef EFI_STATUS (EFIAPI efi_image_func)(struct efi_loader_image *image); +typedef EFI_STATUS (EFIAPI efi_page_alloc_func)( EFI_MEMORY_TYPE type, UINTN size, EFI_PHYSICAL_ADDRESS *base); -typedef EFI_STATUS (EFIAPI *efi_page_free_func)( +typedef EFI_STATUS (EFIAPI efi_page_free_func)( EFI_PHYSICAL_ADDRESS base, UINTN size); @@ -39,14 +39,14 @@ struct efi_loader_interface EFI_HANDLE image_handle; EFI_SYSTEM_TABLE *system_table; - efi_page_alloc_func page_alloc; - efi_page_free_func page_free; + efi_page_alloc_func *page_alloc; + efi_page_free_func *page_free; - efi_image_func image_open; - efi_image_func image_alloc; - efi_image_func image_load; + efi_image_func *image_open; + efi_image_func *image_alloc; + efi_image_func *image_load; }; typedef EFI_STATUS -(__attribute__((sysv_abi)) *efi_shim_entry_func)(struct efi_loader_interface *interface); +(__attribute__((sysv_abi)) efi_shim_entry_func)(struct efi_loader_interface *interface); -- cgit v1.3.1-1-g115d