summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-02 13:25:58 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-02-02 13:25:58 +0000
commit568f78ab31445b6f5cb6963ad4d6ae208aa5b7ab (patch)
tree6698d7ffa0f5d09a345e7b735e89213ffd6f6450 /IntelFrameworkPkg
parent9226efe5ebb83ad0d5882e3eb7a54f3d63f81e9d (diff)
downloadedk2-platforms-568f78ab31445b6f5cb6963ad4d6ae208aa5b7ab.tar.xz
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
Diffstat (limited to 'IntelFrameworkPkg')
-rw-r--r--IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c17
-rw-r--r--IntelFrameworkPkg/Library/HiiLibFramework/HiiLibFramework.c2
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);