diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-02 01:01:44 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-02 01:01:44 +0000 |
| commit | 2fa4e64d36e14e77d9e8ed547d2cc96b6c2ee7de (patch) | |
| tree | 2a194d48445ffb655f039885e11eb17ed449d80e /api/loader/efi/shim.h | |
| parent | ce0c451e37d761024774fb752d86f300c810a8d8 (diff) | |
- don't typedef away function pointers
- cleanups
Diffstat (limited to 'api/loader/efi/shim.h')
| -rw-r--r-- | api/loader/efi/shim.h | 18 |
1 files changed, 9 insertions, 9 deletions
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); |
