]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/EditMenuBar.h
ShellPkg: Update header file including style
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditMenuBar.h
index 407f259fca74f91a2080e41016f5d2c666187898..d545db93465b1e9f49019b7699b09ccd7b44a24d 100644 (file)
 #ifndef _LIB_MENU_BAR_H_\r
 #define _LIB_MENU_BAR_H_\r
 \r
+#define SCAN_CONTROL_E  5\r
+#define SCAN_CONTROL_F  6\r
+#define SCAN_CONTROL_G  7\r
+#define SCAN_CONTROL_K  11\r
+#define SCAN_CONTROL_O  15\r
+#define SCAN_CONTROL_Q  17\r
+#define SCAN_CONTROL_R  18\r
+#define SCAN_CONTROL_S  19\r
+#define SCAN_CONTROL_T  20\r
+#define SCAN_CONTROL_U  21\r
+#define SCAN_CONTROL_W  23\r
+#define SCAN_CONTROL_Z  26\r
+\r
+\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *MENU_ITEM_FUNCTION) (\r
+(*MENU_ITEM_FUNCTION) (\r
   VOID\r
   );\r
 \r
@@ -36,16 +50,26 @@ typedef struct _EDITOR_MENU_ITEM {
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 MenuBarInit (\r
   IN CONST EDITOR_MENU_ITEM  *Items\r
   );\r
 \r
+/**\r
+  Initialize the control hot-key with the specified items.\r
+\r
+  @param[in] Items              The hot-key functions.\r
+\r
+  @retval EFI_SUCCESS           The initialization was correct.\r
+**/\r
+EFI_STATUS\r
+ControlHotKeyInit (\r
+  IN MENU_ITEM_FUNCTION  *Items\r
+  );\r
+\r
 /**\r
   Cleanup function for a menu bar.  frees all allocated memory.\r
 **/\r
 VOID\r
-EFIAPI\r
 MenuBarCleanup (\r
   VOID\r
   );\r
@@ -59,7 +83,6 @@ MenuBarCleanup (
   @retval EFI_SUCCESS           The refresh was successful.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 MenuBarRefresh (\r
   IN CONST UINTN LastRow,\r
   IN CONST UINTN LastCol\r
@@ -75,9 +98,22 @@ MenuBarRefresh (
   @return The return value from the called dispatch function.\r
 **/\r
 EFI_STATUS\r
-EFIAPI\r
 MenuBarDispatchFunctionKey (\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
+\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
+  );\r
+\r
 #endif\r