Merge new defined HII library APIs into HiiLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8069 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,56 +0,0 @@
|
||||
#/** @file
|
||||
#
|
||||
# Instance of HII Library using DXE protocols and services.
|
||||
#
|
||||
# HII Library implementation that uses EFI Hii Database Protocol and EFI Hii String Protocol.
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||
#
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
#
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
#**/
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = UefiHiiLib
|
||||
FILE_GUID = 3143687A-7C80-404e-B5FE-2D88980E1B1C
|
||||
MODULE_TYPE = UEFI_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = NewHiiLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
|
||||
EFI_SPECIFICATION_VERSION = 0x0002000A
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
||||
#
|
||||
|
||||
[Sources.common]
|
||||
HiiLib.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
MemoryAllocationLib
|
||||
BaseMemoryLib
|
||||
BaseLib
|
||||
DebugLib
|
||||
UefiBootServicesTableLib
|
||||
DevicePathLib
|
||||
UefiLib
|
||||
UefiHiiServicesLib
|
||||
PrintLib
|
||||
|
||||
[Protocols]
|
||||
gEfiFormBrowser2ProtocolGuid
|
||||
|
||||
[BuildOptions]
|
||||
*_*_*_CC_FLAGS = /Od
|
||||
|
@@ -22,7 +22,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR16 mConfigHdrTemplate[] = L"GUID=0000000
|
||||
//
|
||||
// Form Browser2 Protocol
|
||||
//
|
||||
EFI_FORM_BROWSER2_PROTOCOL *mFormBrowser2 = NULL;
|
||||
EFI_FORM_BROWSER2_PROTOCOL *mUefiFormBrowser2 = NULL;
|
||||
|
||||
/**
|
||||
This funciton build the package list based on the package number,
|
||||
@@ -846,9 +846,9 @@ InternalHiiBrowserCallback (
|
||||
//
|
||||
// Locate protocols
|
||||
//
|
||||
if (mFormBrowser2 == NULL) {
|
||||
Status = gBS->LocateProtocol (&gEfiFormBrowser2ProtocolGuid, NULL, (VOID **) &mFormBrowser2);
|
||||
if (EFI_ERROR (Status) || mFormBrowser2 == NULL) {
|
||||
if (mUefiFormBrowser2 == NULL) {
|
||||
Status = gBS->LocateProtocol (&gEfiFormBrowser2ProtocolGuid, NULL, (VOID **) &mUefiFormBrowser2);
|
||||
if (EFI_ERROR (Status) || mUefiFormBrowser2 == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@@ -864,8 +864,8 @@ InternalHiiBrowserCallback (
|
||||
//
|
||||
// Retrieve the length of the buffer required ResultsData from the Browser Callback
|
||||
//
|
||||
Status = mFormBrowser2->BrowserCallback (
|
||||
mFormBrowser2,
|
||||
Status = mUefiFormBrowser2->BrowserCallback (
|
||||
mUefiFormBrowser2,
|
||||
&ResultsDataSize,
|
||||
&TempResultsData,
|
||||
TRUE,
|
||||
@@ -888,8 +888,8 @@ InternalHiiBrowserCallback (
|
||||
//
|
||||
// Retrieve or set the ResultsData from the Browser Callback
|
||||
//
|
||||
Status = mFormBrowser2->BrowserCallback (
|
||||
mFormBrowser2,
|
||||
Status = mUefiFormBrowser2->BrowserCallback (
|
||||
mUefiFormBrowser2,
|
||||
&ResultsDataSize,
|
||||
ResultsData,
|
||||
(BOOLEAN)(SetResultsData == NULL),
|
||||
@@ -2856,7 +2856,7 @@ Finish:
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
IfrLibExtractDefault(
|
||||
HiiIfrLibExtractDefault(
|
||||
IN VOID *Buffer,
|
||||
IN UINTN *BufferSize,
|
||||
UINTN Number,
|
||||
|
Reference in New Issue
Block a user