summaryrefslogtreecommitdiff
path: root/MdePkg/Library/IfrSupportLib
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-18 07:47:51 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-18 07:47:51 +0000
commit55a9663bdea82251406a82c4eb0fdf81993a9664 (patch)
tree6f7e80f30736e811962a7192a64cb2b5b500c29e /MdePkg/Library/IfrSupportLib
parentd00afc4ef8ca8eaaf2debec3d9f40fa3ade3fae6 (diff)
downloadedk2-platforms-55a9663bdea82251406a82c4eb0fdf81993a9664.tar.xz
Add IfrLibCreatePopUp2 and HiiLibExportPackageLists.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5663 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/IfrSupportLib')
-rw-r--r--MdePkg/Library/IfrSupportLib/UefiIfrForm.c47
1 files changed, 40 insertions, 7 deletions
diff --git a/MdePkg/Library/IfrSupportLib/UefiIfrForm.c b/MdePkg/Library/IfrSupportLib/UefiIfrForm.c
index 179fc1cb9f..504b88d468 100644
--- a/MdePkg/Library/IfrSupportLib/UefiIfrForm.c
+++ b/MdePkg/Library/IfrSupportLib/UefiIfrForm.c
@@ -36,11 +36,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT16 mFakeConfigHdr[] = L"GUID=00000000000
**/
EFI_STATUS
EFIAPI
-IfrLibCreatePopUp (
+IfrLibCreatePopUp2 (
IN UINTN NumberOfLines,
OUT EFI_INPUT_KEY *KeyValue,
- IN CHAR16 *String,
- ...
+ IN VA_LIST Marker
)
{
UINTN Index;
@@ -54,7 +53,6 @@ IfrLibCreatePopUp (
UINTN BottomRow;
UINTN DimensionsWidth;
UINTN DimensionsHeight;
- VA_LIST Marker;
EFI_INPUT_KEY Key;
UINTN LargestString;
CHAR16 *StackString;
@@ -66,7 +64,10 @@ IfrLibCreatePopUp (
EFI_EVENT WaitList[2];
UINTN CurrentAttribute;
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut;
+ CHAR16 *String;
+ String = VA_ARG (Marker, CHAR16 *);
+
if ((KeyValue == NULL) || (String == NULL)) {
return EFI_INVALID_PARAMETER;
}
@@ -95,7 +96,6 @@ IfrLibCreatePopUp (
LargestString = StrLen (String);
StringArray[0] = String;
- VA_START (Marker, String);
for (Index = 1; Index < NumberOfLines; Index++) {
StackString = VA_ARG (Marker, CHAR16 *);
@@ -109,7 +109,6 @@ IfrLibCreatePopUp (
LargestString = StringLen;
}
}
- VA_END (Marker);
if ((LargestString + 2) > DimensionsWidth) {
LargestString = DimensionsWidth - 2;
@@ -212,10 +211,44 @@ IfrLibCreatePopUp (
ConOut->SetAttribute (ConOut, CurrentAttribute);
ConOut->EnableCursor (ConOut, TRUE);
+ return Status;}
+
+
+/**
+ Draw a dialog and return the selected key.
+
+ @param NumberOfLines The number of lines for the dialog box
+ @param KeyValue The EFI_KEY value returned if HotKey is TRUE..
+ @param String Pointer to the first string in the list
+ @param ... A series of (quantity == NumberOfLines - 1) text
+ strings which will be used to construct the dialog
+ box
+
+ @retval EFI_SUCCESS Displayed dialog and received user interaction
+ @retval EFI_INVALID_PARAMETER One of the parameters was invalid.
+
+**/
+EFI_STATUS
+EFIAPI
+IfrLibCreatePopUp (
+ IN UINTN NumberOfLines,
+ OUT EFI_INPUT_KEY *KeyValue,
+ IN CHAR16 *String,
+ ...
+ )
+{
+ EFI_STATUS Status;
+ VA_LIST Marker;
+
+ VA_START (Marker, KeyValue);
+
+ Status = IfrLibCreatePopUp2 (NumberOfLines, KeyValue, Marker);
+
+ VA_END (Marker);
+
return Status;
}
-
/**
Swap bytes in the buffer. This is a internal function.