/** @file\r
Declares menubar interface functions.\r
\r
- Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#define SCAN_CONTROL_W 23\r
#define SCAN_CONTROL_Z 26\r
\r
-\r
typedef\r
EFI_STATUS\r
(*MENU_ITEM_FUNCTION) (\r
);\r
\r
typedef struct _EDITOR_MENU_ITEM {\r
- EFI_STRING_ID NameToken;\r
- CHAR16 FunctionKeyToken;\r
- MENU_ITEM_FUNCTION Function;\r
+ EFI_STRING_ID NameToken;\r
+ CHAR16 FunctionKeyToken;\r
+ MENU_ITEM_FUNCTION Function;\r
} EDITOR_MENU_ITEM;\r
\r
/**\r
**/\r
EFI_STATUS\r
MenuBarRefresh (\r
- IN CONST UINTN LastRow,\r
- IN CONST UINTN LastCol\r
+ IN CONST UINTN LastRow,\r
+ IN CONST UINTN LastCol\r
);\r
\r
/**\r
\r
@param[in] Key The pressed key.\r
\r
- @retval EFI_NOT_FOUND The key was not a valid function key \r
+ @retval EFI_NOT_FOUND The key was not a valid function key\r
(an error was sent to the status bar).\r
@return The return value from the called dispatch function.\r
**/\r
EFI_STATUS\r
MenuBarDispatchFunctionKey (\r
- IN CONST EFI_INPUT_KEY *Key\r
+ IN CONST EFI_INPUT_KEY *Key\r
);\r
\r
/**\r
Function to dispatch the correct function based on a control-based key (ctrl+o...)\r
\r
- @param[in] Key The pressed key.\r
+ @param[in] KeyData The pressed key.\r
\r
- @retval EFI_NOT_FOUND The key was not a valid control-based key \r
+ @retval EFI_NOT_FOUND The key was not a valid control-based key\r
(an error was sent to the status bar).\r
@return EFI_SUCCESS.\r
**/\r
EFI_STATUS\r
MenuBarDispatchControlHotKey (\r
- IN CONST EFI_INPUT_KEY *Key\r
+ IN CONST EFI_KEY_DATA *KeyData\r
);\r
\r
#endif\r