Based on request, export ResetRequired info used by browser.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Gao, Liming <liming,gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15525 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
Extension Form Browser Protocol provides the services that can be used to
|
Extension Form Browser Protocol provides the services that can be used to
|
||||||
register the different hot keys for the standard Browser actions described in UEFI specification.
|
register the different hot keys for the standard Browser actions described in UEFI specification.
|
||||||
|
|
||||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available under
|
This program and the accompanying materials are licensed and made available under
|
||||||
the terms and conditions of the BSD License that accompanies this distribution.
|
the terms and conditions of the BSD License that accompanies this distribution.
|
||||||
The full text of the license may be found at
|
The full text of the license may be found at
|
||||||
@ -24,6 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
typedef struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL;
|
typedef struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL;
|
||||||
|
|
||||||
#define BROWSER_EXTENSION2_VERSION_1 0x10000
|
#define BROWSER_EXTENSION2_VERSION_1 0x10000
|
||||||
|
#define BROWSER_EXTENSION2_VERSION_1_1 0x10001
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check whether the browser data has been modified.
|
Check whether the browser data has been modified.
|
||||||
@ -54,6 +55,19 @@ EFI_STATUS
|
|||||||
IN UINT16 DefaultId
|
IN UINT16 DefaultId
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check whether required reset when exit the browser
|
||||||
|
|
||||||
|
@retval TRUE Browser required to reset after exit.
|
||||||
|
@retval FALSE Browser not need to reset after exit.
|
||||||
|
|
||||||
|
**/
|
||||||
|
typedef
|
||||||
|
BOOLEAN
|
||||||
|
(EFIAPI *IS_RESET_REQUIRED) (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
#define FORM_ENTRY_INFO_SIGNATURE SIGNATURE_32 ('f', 'e', 'i', 's')
|
#define FORM_ENTRY_INFO_SIGNATURE SIGNATURE_32 ('f', 'e', 'i', 's')
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -101,6 +115,8 @@ struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL {
|
|||||||
/// A list of type QUESTION_ATTRIBUTE_OVERRIDE.
|
/// A list of type QUESTION_ATTRIBUTE_OVERRIDE.
|
||||||
///
|
///
|
||||||
LIST_ENTRY OverrideQestListHead;
|
LIST_ENTRY OverrideQestListHead;
|
||||||
|
|
||||||
|
IS_RESET_REQUIRED IsResetRequired;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern EFI_GUID gEdkiiFormBrowserEx2ProtocolGuid;
|
extern EFI_GUID gEdkiiFormBrowserEx2ProtocolGuid;
|
||||||
|
@ -28,12 +28,15 @@ SETUP_DRIVER_PRIVATE_DATA mPrivateData = {
|
|||||||
SaveReminder
|
SaveReminder
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
BROWSER_EXTENSION2_VERSION_1,
|
BROWSER_EXTENSION2_VERSION_1_1,
|
||||||
SetScope,
|
SetScope,
|
||||||
RegisterHotKey,
|
RegisterHotKey,
|
||||||
RegiserExitHandler,
|
RegiserExitHandler,
|
||||||
IsBrowserDataModified,
|
IsBrowserDataModified,
|
||||||
ExecuteAction,
|
ExecuteAction,
|
||||||
|
{NULL,NULL},
|
||||||
|
{NULL,NULL},
|
||||||
|
IsResetRequired
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5288,3 +5291,20 @@ SaveReminder (
|
|||||||
|
|
||||||
return DataSavedAction;
|
return DataSavedAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check whether the Reset Required for the browser
|
||||||
|
|
||||||
|
@retval TRUE Browser required to reset after exit.
|
||||||
|
@retval FALSE Browser not need to reset after exit.
|
||||||
|
|
||||||
|
**/
|
||||||
|
BOOLEAN
|
||||||
|
EFIAPI
|
||||||
|
IsResetRequired (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return gResetRequired;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1353,6 +1353,19 @@ SaveReminder (
|
|||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check whether the Reset Required for the browser
|
||||||
|
|
||||||
|
@retval TRUE Browser required to reset after exit.
|
||||||
|
@retval FALSE Browser not need to reset after exit.
|
||||||
|
|
||||||
|
**/
|
||||||
|
BOOLEAN
|
||||||
|
EFIAPI
|
||||||
|
IsResetRequired (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Find the registered HotKey based on KeyData.
|
Find the registered HotKey based on KeyData.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user