EDKII implementation protocol should be with EDKII_ prefix.
V2: add gEdkiiFormBrowserExProtocolGuid to align its structure name.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Extension Form Browser Protocol provides the services that can be used to \r
register the different hot keys for the standard Browser actions described in UEFI specification.\r
\r
-Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available under \r
the terms and conditions of the BSD License that accompanies this distribution. \r
The full text of the license may be found at\r
#define FORM_BROWSER_EXTENSION_PROTOCOL_GUID \\r
{ 0x1f73b18d, 0x4630, 0x43c1, { 0xa1, 0xde, 0x6f, 0x80, 0x85, 0x5d, 0x7d, 0xa4 } }\r
\r
-typedef struct _EFI_FORM_BROWSER_EXTENSION_PROTOCOL EFI_FORM_BROWSER_EXTENSION_PROTOCOL;\r
+typedef struct _EDKII_FORM_BROWSER_EXTENSION_PROTOCOL EDKII_FORM_BROWSER_EXTENSION_PROTOCOL;\r
+\r
+//\r
+// To be compatible, keep EFI_FORM_BROWSER_EXTENSION_PROTOCOL definition\r
+//\r
+typedef EDKII_FORM_BROWSER_EXTENSION_PROTOCOL EFI_FORM_BROWSER_EXTENSION_PROTOCOL;\r
\r
//\r
// Return value of SAVE_REMINDER() that describes whether the changed data is saved or discarded.\r
VOID\r
);\r
\r
-struct _EFI_FORM_BROWSER_EXTENSION_PROTOCOL {\r
+struct _EDKII_FORM_BROWSER_EXTENSION_PROTOCOL {\r
SET_SCOPE SetScope;\r
REGISTER_HOT_KEY RegisterHotKey;\r
REGISTER_EXIT_HANDLER RegiserExitHandler;\r
};\r
\r
extern EFI_GUID gEfiFormBrowserExProtocolGuid;\r
+extern EFI_GUID gEdkiiFormBrowserExProtocolGuid;\r
\r
#endif\r
\r
\r
## Include/Protocol/FormBrowserEx.h\r
gEfiFormBrowserExProtocolGuid = { 0x1f73b18d, 0x4630, 0x43c1, { 0xa1, 0xde, 0x6f, 0x80, 0x85, 0x5d, 0x7d, 0xa4 } }\r
+ gEdkiiFormBrowserExProtocolGuid = { 0x1f73b18d, 0x4630, 0x43c1, { 0xa1, 0xde, 0x6f, 0x80, 0x85, 0x5d, 0x7d, 0xa4 } }\r
\r
## Include/Protocol/EbcVmTest.h\r
gEfiEbcVmTestProtocolGuid = { 0xAAEACCFD, 0xF27B, 0x4C17, { 0xB6, 0x10, 0x75, 0xCA, 0x1F, 0x2D, 0xFB, 0x52 } }\r
EFI_STRING NameRequestHdr;\r
MY_EFI_VARSTORE_DATA *VarStoreConfig;\r
EFI_INPUT_KEY HotKey;\r
- EFI_FORM_BROWSER_EXTENSION_PROTOCOL *FormBrowserEx;\r
+ EDKII_FORM_BROWSER_EXTENSION_PROTOCOL *FormBrowserEx;\r
\r
//\r
// Initialize the local variables.\r
//\r
// Example of how to use BrowserEx protocol to register HotKey.\r
// \r
- Status = gBS->LocateProtocol (&gEfiFormBrowserExProtocolGuid, NULL, (VOID **) &FormBrowserEx);\r
+ Status = gBS->LocateProtocol (&gEdkiiFormBrowserExProtocolGuid, NULL, (VOID **) &FormBrowserEx);\r
if (!EFI_ERROR (Status)) {\r
//\r
// First unregister the default hot key F9 and F10.\r
gEfiFormBrowser2ProtocolGuid ## CONSUMES\r
gEfiHiiDatabaseProtocolGuid ## CONSUMES\r
gEfiSimpleTextInputExProtocolGuid ## SOMETIMES_CONSUMES\r
- gEfiFormBrowserExProtocolGuid ## CONSUMES\r
+ gEdkiiFormBrowserExProtocolGuid ## CONSUMES\r
gEfiConfigKeywordHandlerProtocolGuid ## CONSUMES\r
\r
[Depex]\r
\r
Status = gBS->InstallProtocolInterface (\r
&mPrivateData.Handle,\r
- &gEfiFormBrowserExProtocolGuid,\r
+ &gEdkiiFormBrowserExProtocolGuid,\r
EFI_NATIVE_INTERFACE,\r
&mPrivateData.FormBrowserEx\r
);\r
// Produced protocol\r
//\r
EFI_FORM_BROWSER2_PROTOCOL FormBrowser2;\r
- EFI_FORM_BROWSER_EXTENSION_PROTOCOL FormBrowserEx;\r
+ EDKII_FORM_BROWSER_EXTENSION_PROTOCOL FormBrowserEx;\r
\r
EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL FormBrowserEx2;\r
\r
## CONSUMES\r
## NOTIFY\r
gEdkiiFormDisplayEngineProtocolGuid\r
- gEfiFormBrowserExProtocolGuid ## PRODUCES\r
+ gEdkiiFormBrowserExProtocolGuid ## PRODUCES\r
gEfiRegularExpressionProtocolGuid ## CONSUMES\r
\r
[FeaturePcd]\r