From 568f78ab31445b6f5cb6963ad4d6ae208aa5b7ab Mon Sep 17 00:00:00 2001 From: qwang12 Date: Sat, 2 Feb 2008 13:25:58 +0000 Subject: 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@4663 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c | 17 ++++++++++------- .../Library/HiiLibFramework/HiiLibFramework.c | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c index 1b4c0dd79a..9f572624a1 100644 --- a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c +++ b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c @@ -128,7 +128,7 @@ PreparePackages ( EFI_STATUS EFIAPI -HiiLibAddPackagesToHiiDatabase ( +HiiLibAddPackages ( IN UINTN NumberOfPackages, IN CONST EFI_GUID *GuidId, IN EFI_HANDLE DriverHandle, OPTIONAL @@ -186,7 +186,7 @@ HiiLibAddFontPackageToHiiDatabase ( // // Register our Fonts into the global database // - Status = HiiLibAddPackagesToHiiDatabase (1, NULL, HiiHandle, NULL, FontPack); + Status = HiiLibAddPackages (1, NULL, HiiHandle, NULL, FontPack); // // Free the font database // @@ -195,13 +195,16 @@ HiiLibAddFontPackageToHiiDatabase ( return Status; } -EFI_STATUS +VOID EFIAPI -HiiLibRemovePackagesFromHiiDatabase ( +HiiLibRemovePackages ( IN EFI_HII_HANDLE HiiHandle ) { - return mHii->RemovePack (mHii, (FRAMEWORK_EFI_HII_HANDLE) (UINTN) HiiHandle); + EFI_STATUS Status; + + Status = mHii->RemovePack (mHii, (FRAMEWORK_EFI_HII_HANDLE) (UINTN) HiiHandle); + ASSERT_EFI_ERROR (Status); } @@ -223,7 +226,7 @@ HiiLibRemovePackagesFromHiiDatabase ( **/ EFI_STATUS EFIAPI -HiiLibCreateString ( +HiiLibNewString ( IN EFI_HII_HANDLE PackageList, OUT EFI_STRING_ID *StringId, IN CONST EFI_STRING String @@ -273,7 +276,7 @@ HiiLibUpdateString ( // EFI_STATUS EFIAPI -HiiLibGetStringFromGuidId ( +HiiLibGetStringFromToken ( IN EFI_GUID *ProducerGuid, IN EFI_STRING_ID StringId, OUT EFI_STRING *String diff --git a/IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.c b/IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.c index ca7febda4b..cf10739897 100644 --- a/IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.c +++ b/IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.c @@ -40,7 +40,7 @@ HiiLibFrameworkConstructor ( Status = gBS->LocateProtocol ( &gEfiHiiProtocolGuid, NULL, - &gHiiProtocol + (VOID **) &gHiiProtocol ); ASSERT_EFI_ERROR (Status); -- cgit v1.2.3