Update FrameworkHiiToUefiHiiThunk to produce Framework HII Protocol and Framework Setup Browser in new GUIDs. This is because the interfaces produced only handle IFR and String packages in UEFI format.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5801 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-09-03 10:47:00 +00:00
parent 8ee3a19908
commit 962045a2ab
2 changed files with 6 additions and 5 deletions

View File

@ -85,7 +85,6 @@
PrintLib PrintLib
[Protocols] [Protocols]
gEfiHiiProtocolGuid
gEfiHiiImageProtocolGuid gEfiHiiImageProtocolGuid
gEfiHiiDatabaseProtocolGuid gEfiHiiDatabaseProtocolGuid
gEfiHiiStringProtocolGuid gEfiHiiStringProtocolGuid
@ -94,7 +93,8 @@
gEfiHiiConfigAccessProtocolGuid gEfiHiiConfigAccessProtocolGuid
gEfiFormCallbackProtocolGuid gEfiFormCallbackProtocolGuid
gEfiUnicodeCollation2ProtocolGuid gEfiUnicodeCollation2ProtocolGuid
gEfiFormBrowserProtocolGuid gEfiHiiCompatibilityProtocolGuid
gEfiFormBrowserCompatibilityProtocolGuid
[Depex] [Depex]
gEfiHiiDatabaseProtocolGuid AND gEfiHiiDatabaseProtocolGuid AND

View File

@ -104,7 +104,8 @@ Returns:
HII_THUNK_CONTEXT *ThunkContext; HII_THUNK_CONTEXT *ThunkContext;
ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiHiiProtocolGuid); ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiHiiCompatibilityProtocolGuid);
ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiFormBrowserCompatibilityProtocolGuid);
Private = AllocateCopyPool (sizeof (HII_THUNK_PRIVATE_DATA), &mHiiThunkPrivateDataTempate); Private = AllocateCopyPool (sizeof (HII_THUNK_PRIVATE_DATA), &mHiiThunkPrivateDataTempate);
ASSERT (Private != NULL); ASSERT (Private != NULL);
@ -158,7 +159,7 @@ Returns:
// //
Status = gBS->InstallProtocolInterface ( Status = gBS->InstallProtocolInterface (
&Private->Handle, &Private->Handle,
&gEfiHiiProtocolGuid, &gEfiHiiCompatibilityProtocolGuid,
EFI_NATIVE_INTERFACE, EFI_NATIVE_INTERFACE,
(VOID *) &Private->Hii (VOID *) &Private->Hii
); );
@ -229,7 +230,7 @@ Returns:
mBrowserThunkPrivateDataTemplate.ThunkPrivate = Private; mBrowserThunkPrivateDataTemplate.ThunkPrivate = Private;
Status = gBS->InstallProtocolInterface ( Status = gBS->InstallProtocolInterface (
&mBrowserThunkPrivateDataTemplate.Handle, &mBrowserThunkPrivateDataTemplate.Handle,
&gEfiFormBrowserProtocolGuid, &gEfiFormBrowserCompatibilityProtocolGuid,
EFI_NATIVE_INTERFACE, EFI_NATIVE_INTERFACE,
(VOID *) &mBrowserThunkPrivateDataTemplate.FormBrowser (VOID *) &mBrowserThunkPrivateDataTemplate.FormBrowser
); );