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
This commit is contained in:
ydong10
2011-05-31 00:59:15 +00:00
parent d490265ca6
commit b18e705046
12 changed files with 990 additions and 433 deletions

View File

@@ -2,7 +2,7 @@
//
// Sample Setup formset.
//
// 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
@@ -141,6 +141,19 @@ formset
flags = INTERACTIVE,
key = 0x1238;
text
help = STRING_TOKEN(STR_SAVE_CURRENT),
text = STRING_TOKEN(STR_SAVE_CURRENT),
text = STRING_TOKEN(STR_SAVE_CURRENT),
flags = INTERACTIVE,
key = 0x1243;
text
help = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),
text = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),
text = STRING_TOKEN(STR_DISCARD_CURRENT_AND_EXIT),
flags = INTERACTIVE,
key = 0x1244;
//
// Define oneof (EFI_IFR_ONE_OF)
//
@@ -530,6 +543,20 @@ formset
enddate;
text
help = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),
text = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),
text = STRING_TOKEN(STR_SAVE_CURRENT_AND_EXIT),
flags = INTERACTIVE,
key = 0x1241;
text
help = STRING_TOKEN(STR_DISCARD_CURRENT),
text = STRING_TOKEN(STR_DISCARD_CURRENT),
text = STRING_TOKEN(STR_DISCARD_CURRENT),
flags = INTERACTIVE,
key = 0x1242;
time hour varid = Time.Hours, // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from
prompt = STRING_TOKEN(STR_TIME_PROMPT),
help = STRING_TOKEN(STR_TIME_HELP),