Add locate_protocol definition to boot_services

This commit is contained in:
Justin C. Miller
2020-02-21 20:04:41 -08:00
parent d2cd7b4f77
commit a7d75487cb

View File

@@ -11,6 +11,9 @@
#include <uefi/tables.h> #include <uefi/tables.h>
namespace uefi { namespace uefi {
namespace bs_impl {
using locate_protocol = uefi::status (*)(const uefi::guid *, void *, void **);
}
struct boot_services { struct boot_services {
static constexpr uint64_t signature = 0x56524553544f4f42ull; static constexpr uint64_t signature = 0x56524553544f4f42ull;
@@ -71,7 +74,7 @@ struct boot_services {
// Library Services // Library Services
void *protocols_per_handle; void *protocols_per_handle;
void *locate_handle_buffer; void *locate_handle_buffer;
void *locate_protocol; bs_impl::locate_protocol locate_protocol;
void *install_multiple_protocol_interfaces; void *install_multiple_protocol_interfaces;
void *uninstall_multiple_protocol_interfaces; void *uninstall_multiple_protocol_interfaces;