diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-14 10:47:19 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-14 10:47:19 +0000 |
commit | cb7d01c0c9fd199742d0fed6aa69dab0c79c3338 (patch) | |
tree | 920a78778c9de452a58ee0d0df2893e7c4822bdb /DuetPkg/DataHubGenDxe | |
parent | 169a34619b6d583d9f2934a6a3e9caf6e5c6e355 (diff) | |
download | edk2-platforms-cb7d01c0c9fd199742d0fed6aa69dab0c79c3338.tar.xz |
HII Library Class interface refine.
The "HiiLib" prefix for all HII Library API function names changed to "Hii".
Remove:
HiiLibPreparePackageList(), replaced by HiiAddPackages()
HiiLibNewString(), replaced by HiiSetString()
HiiLibGetStringFromHandle(), replaced by HiiGetString()
HiiLibGetStringFromToken(), replaced by HiiGetPackageString()
HiiLibExtractGuidFromHiiHandle()
HiiLibDevicePathToHiiHandle()
HiiLibGetSupportedSecondaryLanguages()
HiiLibGetSupportedLanguageNumber()
HiiLibExportPackageLists()
HiiLibListPackageLists()
Interface change:
HiiAddPackages()
HiiSetString()
HiiGetString()
HiiGetHiiHandles()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8083 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/DataHubGenDxe')
-rw-r--r-- | DuetPkg/DataHubGenDxe/DataHubGen.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.c b/DuetPkg/DataHubGenDxe/DataHubGen.c index 6d6770444d..937425fb8f 100644 --- a/DuetPkg/DataHubGenDxe/DataHubGen.c +++ b/DuetPkg/DataHubGenDxe/DataHubGen.c @@ -104,9 +104,8 @@ InstallProcessorDataHub ( ASSERT (UString != NULL);
AsciiStrToUnicodeStr (AString, UString);
- Status = HiiLibNewString (gStringHandle, &Token, UString);
-
- if (EFI_ERROR (Status)) {
+ Token = HiiSetString (gStringHandle, 0, UString, NULL);
+ if (Token == 0) {
gBS->FreePool (UString);
return ;
}
@@ -232,9 +231,8 @@ InstallMiscDataHub ( CopyMem (UString, FIRMWARE_BIOS_VERSIONE, sizeof(FIRMWARE_BIOS_VERSIONE));
AsciiStrToUnicodeStr (AString, UString + sizeof(FIRMWARE_BIOS_VERSIONE) / sizeof(CHAR16) - 1);
- Status = HiiLibNewString (gStringHandle, &Token, UString);
-
- if (EFI_ERROR (Status)) {
+ Token = HiiSetString (gStringHandle, 0, UString, NULL);
+ if (Token == 0) {
gBS->FreePool (UString);
return ;
}
@@ -281,9 +279,8 @@ InstallMiscDataHub ( CopyMem (UString, FIRMWARE_PRODUCT_NAME, sizeof(FIRMWARE_PRODUCT_NAME));
AsciiStrToUnicodeStr (AString, UString + sizeof(FIRMWARE_PRODUCT_NAME) / sizeof(CHAR16) - 1);
- Status = HiiLibNewString (gStringHandle, &Token, UString);
-
- if (EFI_ERROR (Status)) {
+ Token = HiiSetString (gStringHandle, 0, UString, NULL);
+ if (Token == 0) {
gBS->FreePool (UString);
return ;
}
@@ -345,7 +342,13 @@ DataHubGenEntrypoint ( return Status;
}
- HiiLibAddPackages (1, &gEfiMiscProducerGuid, NULL, &gStringHandle, DataHubGenDxeStrings);
+ gStringHandle = HiiAddPackages (
+ &gEfiMiscProducerGuid,
+ NULL,
+ DataHubGenDxeStrings,
+ NULL
+ );
+ ASSERT (gStringHandle != NULL);
InstallProcessorDataHub (Smbios);
InstallCacheDataHub (Smbios);
|