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:
@@ -2,7 +2,7 @@
|
||||
This is an example of how a driver might export data to the HII protocol to be
|
||||
later utilized by the Setup Protocol
|
||||
|
||||
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
|
||||
@@ -587,7 +587,7 @@ AppendAltCfgString (
|
||||
StringPtr += StrLen (L"&VALUE=");
|
||||
|
||||
//
|
||||
// Get Width
|
||||
// Get Value
|
||||
//
|
||||
Status = GetValueOfNumber (StringPtr, &TmpBuffer, &Length);
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -1501,6 +1501,34 @@ DriverCallback (
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT;
|
||||
break;
|
||||
|
||||
case 0x1241:
|
||||
//
|
||||
// User press "Submit current form and Exit now", request Browser to submit current form and exit
|
||||
//
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_SUBMIT_EXIT;
|
||||
break;
|
||||
|
||||
case 0x1242:
|
||||
//
|
||||
// User press "Discard current form now", request Browser to discard the uncommitted data.
|
||||
//
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_DISCARD;
|
||||
break;
|
||||
|
||||
case 0x1243:
|
||||
//
|
||||
// User press "Submit current form now", request Browser to save the uncommitted data.
|
||||
//
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_APPLY;
|
||||
break;
|
||||
|
||||
case 0x1244:
|
||||
//
|
||||
// User press "Discard current form and Exit now", request Browser to discard the uncommitted data and exit.
|
||||
//
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_DISCARD_EXIT;
|
||||
break;
|
||||
|
||||
case 0x2000:
|
||||
//
|
||||
// Only used to update the state.
|
||||
|
Reference in New Issue
Block a user