/*++\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
- Presentation.c\r
+ Presentation.c\r
\r
Abstract:\r
\r
\r
gST->ConOut->SetCursorPosition (gST->ConOut, LeftColumn, TopRow);\r
\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
return ;\r
}\r
\r
break;\r
}\r
\r
- gBS->FreePool (StrFrontPageBanner);\r
+ FreePool (StrFrontPageBanner);\r
}\r
}\r
}\r
}\r
}\r
\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
\r
}\r
\r
?F2=Previous Page Setup Page ?\r
+------------------------------------------------------------------------------+\r
\r
- \r
+\r
\r
\r
\r
| ^"=Move Highlight <Spacebar> Toggles Checkbox Esc=Discard Changes |\r
+------------------------------------------------------------------------------+\r
*/\r
+STATIC\r
UI_MENU_OPTION *\r
DisplayForm (\r
OUT UI_MENU_OPTION *Selection,\r
//\r
// Remove Buffer allocated for StringPtr after it has been used.\r
//\r
- gBS->FreePool (StringPtr);\r
+ FreePool (StringPtr);\r
\r
for (Index = 0; FormTags.Tags[Index].Operand != EFI_IFR_END_FORM_OP; Index++) {\r
GrayOut = FALSE;\r
FormTags.Tags[Index].NumberOfLines++;\r
}\r
\r
- gBS->FreePool (OutputString);\r
+ FreePool (OutputString);\r
}\r
\r
ArrayEntry = 0;\r
PrintStringAt (SecCol, BottomRowOfHelp, gEnterString);\r
}\r
} else {\r
- PrintStringAt (StartColumnOfHelp, BottomRowOfHelp, gEnterCommitString);\r
+ PrintStringAt (SecCol, BottomRowOfHelp, gEnterCommitString);\r
\r
//\r
// If it is a selected numeric with manual input, display different message\r
if ((Selection->ThisTag->Operand == EFI_IFR_NUMERIC_OP) && (Selection->ThisTag->Step == 0)) {\r
PrintStringAt (SecCol, TopRowOfHelp, gNumericInput);\r
} else if (Selection->ThisTag->Operand != EFI_IFR_ORDERED_LIST_OP) {\r
- PrintAt (SecCol, BottomRowOfHelp, (CHAR16 *) L"%c%c%s", ARROW_UP, ARROW_DOWN, gMoveHighlight);\r
+ PrintAt (StartColumnOfHelp, BottomRowOfHelp, L"%c%c%s", ARROW_UP, ARROW_DOWN, gMoveHighlight);\r
}\r
\r
if (Selection->ThisTag->Operand == EFI_IFR_ORDERED_LIST_OP) {\r
\r
}\r
\r
+STATIC\r
VOID\r
ExtractFormHandle (\r
IN UI_MENU_OPTION *Selection,\r
return ;\r
}\r
\r
+STATIC\r
EFI_STATUS\r
UpdateNewTagData (\r
IN UINT8 *FormData,\r
return Status;\r
}\r
\r
+STATIC\r
VOID\r
ExtractDynamicFormHandle (\r
IN UI_MENU_OPTION *Selection,\r
The function does the most of the works when the EFI_TAG that\r
user selects on is EFI_IFR_FLAG_INTERACTIVE or EFI_IFR_PASSWORD_OP:\r
invoke CallBack, update the new form data.\r
- \r
+\r
Arguments:\r
- \r
+\r
Selection - The current selection of the form.\r
CallbackData - The pointer to host the data passed back by the callback function.\r
FileFormTagsHead - Prompt string token of the one-of box\r
FormHandle - Output the the handle of the form.\r
TitleToken - Output the TitleToken of the new page.\r
FormTags - Output the FormFags of the new page.\r
- \r
-Returns: \r
+\r
+Returns:\r
VOID\r
- \r
+\r
--*/\r
{\r
UINTN Index;\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- gBS->FreePool (LocalTags->Tags);\r
+ FreePool (LocalTags->Tags);\r
return ;\r
}\r
\r
}\r
\r
if (Packet != NULL) {\r
- gBS->FreePool (Packet);\r
+ FreePool (Packet);\r
}\r
\r
for (BackupIndex = 0; LocalTags->Tags[BackupIndex].Operand != EFI_IFR_END_FORM_OP; BackupIndex++) {\r
// Delete the buffer associated with previous dynamic page\r
// We will re-allocate a buffer....\r
//\r
- gBS->FreePool (LocalTags->Tags);\r
+ FreePool (LocalTags->Tags);\r
\r
Length = 0xF000;\r
Buffer = AllocateZeroPool (Length);\r