1) Cleanup HiiLib, IfrSupportLib.
2) Add ExtendedHiiLib and ExtendedIfrSupportLib which implement APIs that require the OPcode and Device Path which is specific to Intel's implementation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4662 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -568,7 +568,7 @@ InitializeSetup (
|
||||
Status = HiiLibCreateHiiDriverHandle (&HiiDriverHandle);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
PackageList = PreparePackageList (1, &gSetupBrowserGuid, SetupBrowserStrings);
|
||||
PackageList = HiiLibPreparePackageList (1, &gSetupBrowserGuid, SetupBrowserStrings);
|
||||
ASSERT (PackageList != NULL);
|
||||
Status = mHiiDatabase->NewPackageList (
|
||||
mHiiDatabase,
|
||||
@@ -631,7 +631,7 @@ NewString (
|
||||
EFI_STATUS Status;
|
||||
|
||||
StringId = 0;
|
||||
Status = IfrLibNewString (HiiHandle, &StringId, String);
|
||||
Status = HiiLibNewString (HiiHandle, &StringId, String);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
return StringId;
|
||||
@@ -656,7 +656,7 @@ DeleteString (
|
||||
CHAR16 NullChar;
|
||||
|
||||
NullChar = CHAR_NULL;
|
||||
return IfrLibSetString (HiiHandle, StringId, &NullChar);
|
||||
return HiiLibSetString (HiiHandle, StringId, &NullChar);
|
||||
}
|
||||
|
||||
|
||||
@@ -687,14 +687,14 @@ GetToken (
|
||||
String = AllocateZeroPool (BufferLength);
|
||||
ASSERT (String != NULL);
|
||||
|
||||
Status = IfrLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
Status = HiiLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
|
||||
if (Status == EFI_BUFFER_TOO_SMALL) {
|
||||
gBS->FreePool (String);
|
||||
String = AllocateZeroPool (BufferLength);
|
||||
ASSERT (String != NULL);
|
||||
|
||||
Status = IfrLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
Status = HiiLibGetString (HiiHandle, Token, String, &BufferLength);
|
||||
}
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
|
@@ -50,7 +50,9 @@ Revision History
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/IfrSupportLib.h>
|
||||
#include <Library/ExtendedIfrSupportLib.h>
|
||||
#include <Library/HiiLib.h>
|
||||
#include <Library/ExtendedHiiLib.h>
|
||||
|
||||
#include "R8Lib.h"
|
||||
|
||||
|
@@ -67,6 +67,7 @@
|
||||
GraphicsLib
|
||||
IfrSupportLib
|
||||
HiiLib
|
||||
ExtendedHiiLib
|
||||
|
||||
[Protocols]
|
||||
gEfiPrintProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
|
@@ -2259,7 +2259,7 @@ UiDisplayMenu (
|
||||
DevicePath = AllocatePool (BufferSize);
|
||||
|
||||
HexStringToBuffer ((UINT8 *) DevicePath, &BufferSize, StringPtr);
|
||||
Selection->Handle = DevicePathToHiiHandle (mHiiDatabase, DevicePath);
|
||||
Selection->Handle = HiiLibDevicePathToHiiHandle (DevicePath);
|
||||
if (Selection->Handle == NULL) {
|
||||
//
|
||||
// If target Hii Handle not found, exit
|
||||
|
Reference in New Issue
Block a user