TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiHiiServicesLib.c
Go to the documentation of this file.
1
12#include <Uefi.h>
13
16#include <Library/DebugLib.h>
17
18#include <Protocol/HiiFont.h>
19#include <Protocol/HiiString.h>
20#include <Protocol/HiiImage.h>
23
28
33
38
43
48
70EFIAPI
72 IN EFI_HANDLE ImageHandle,
73 IN EFI_SYSTEM_TABLE *SystemTable
74 )
75{
76 EFI_STATUS Status;
77
78 //
79 // Retrieve the pointer to the UEFI HII String Protocol
80 //
81 Status = gBS->LocateProtocol (&gEfiHiiStringProtocolGuid, NULL, (VOID **)&gHiiString);
82 ASSERT_EFI_ERROR (Status);
83
84 //
85 // Retrieve the pointer to the UEFI HII Database Protocol
86 //
87 Status = gBS->LocateProtocol (&gEfiHiiDatabaseProtocolGuid, NULL, (VOID **)&gHiiDatabase);
88 ASSERT_EFI_ERROR (Status);
89
90 //
91 // Retrieve the pointer to the UEFI HII Config Routing Protocol
92 //
93 Status = gBS->LocateProtocol (&gEfiHiiConfigRoutingProtocolGuid, NULL, (VOID **)&gHiiConfigRouting);
94 ASSERT_EFI_ERROR (Status);
95
96 //
97 // Retrieve the pointer to the optional UEFI HII Font Protocol
98 //
99 gBS->LocateProtocol (&gEfiHiiFontProtocolGuid, NULL, (VOID **)&gHiiFont);
100
101 //
102 // Retrieve the pointer to the optional UEFI HII Image Protocol
103 //
104 gBS->LocateProtocol (&gEfiHiiImageProtocolGuid, NULL, (VOID **)&gHiiImage);
105
106 return EFI_SUCCESS;
107}
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_BOOT_SERVICES * gBS
EFI_HII_FONT_PROTOCOL * gHiiFont
EFI_HII_STRING_PROTOCOL * gHiiString
EFI_HII_CONFIG_ROUTING_PROTOCOL * gHiiConfigRouting
EFI_STATUS EFIAPI UefiHiiServicesLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_HII_DATABASE_PROTOCOL * gHiiDatabase
EFI_HII_IMAGE_PROTOCOL * gHiiImage