summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-31 00:59:15 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-31 00:59:15 +0000
commitb18e7050464b0809e0c8366219447e87c9124551 (patch)
treefe7559d345762b6aa5688380608f4c137e5f26b1 /MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
parentd490265ca611af3c6a309c293b4794c461761956 (diff)
downloadedk2-platforms-b18e7050464b0809e0c8366219447e87c9124551.tar.xz
Add new call back return value; also add some sample code to use it.
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11713 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Ui.h')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Ui.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
index 362f8e7d60..a9f679b3d2 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.h
@@ -1,7 +1,7 @@
/** @file
Private structure, MACRO and function definitions for User Interface related functionalities.
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -76,6 +76,8 @@ typedef enum {
#define UI_ACTION_REFRESH_FORMSET 2
#define UI_ACTION_EXIT 3
+typedef struct _UI_MENU_LIST UI_MENU_LIST;
+
typedef struct {
EFI_HII_HANDLE Handle;
@@ -111,6 +113,8 @@ typedef struct {
// Whether the Form is editable
//
BOOLEAN FormEditable;
+
+ UI_MENU_LIST *CurrentMenu;
} UI_MENU_SELECTION;
#define UI_MENU_OPTION_SIGNATURE SIGNATURE_32 ('u', 'i', 'm', 'm')
@@ -152,8 +156,6 @@ typedef struct {
#define MENU_OPTION_FROM_LINK(a) CR (a, UI_MENU_OPTION, Link, UI_MENU_OPTION_SIGNATURE)
-typedef struct _UI_MENU_LIST UI_MENU_LIST;
-
struct _UI_MENU_LIST {
UINTN Signature;
LIST_ENTRY Link;
@@ -449,6 +451,7 @@ GetNumericInput (
/**
Update status bar on the bottom of menu.
+ @param Selection Current selection info.
@param MessageType The type of message to be shown.
@param Flags The flags in Question header.
@param State Set or clear.
@@ -456,6 +459,7 @@ GetNumericInput (
**/
VOID
UpdateStatusBar (
+ IN UI_MENU_SELECTION *Selection,
IN UINTN MessageType,
IN UINT8 Flags,
IN BOOLEAN State