]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.h
ShellPkg: Parse new SMBIOS 3.0 fields.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditInputBar.h
CommitLineData
2442e62a 1/** @file\r
2 Declares imputbar interface functions.\r
3\r
4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _LIB_INPUT_BAR_H_\r
16#define _LIB_INPUT_BAR_H_\r
17\r
18/**\r
19 Initialize the input bar.\r
20**/\r
21VOID\r
22EFIAPI\r
23InputBarInit (\r
24 VOID\r
25 );\r
26\r
27/**\r
28 Cleanup function for input bar.\r
29**/\r
30VOID\r
31EFIAPI\r
32InputBarCleanup (\r
33 VOID\r
34 );\r
35\r
36/**\r
37 The refresh function for InputBar, it will wait for user input\r
38\r
39 @param[in] LastRow The last printable row.\r
40 @param[in] LastColumn The last printable column.\r
41\r
42 @retval EFI_SUCCESS The operation was successful.\r
43**/\r
44EFI_STATUS\r
45EFIAPI\r
46InputBarRefresh (\r
47 UINTN LastRow,\r
48 UINTN LastColumn\r
49 );\r
50\r
51/**\r
52 SetPrompt and wait for input.\r
53\r
54 @param[in] Str The prompt string.\r
55\r
56 @retval EFI_SUCCESS The operation was successful.\r
57 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
58**/\r
59EFI_STATUS\r
60EFIAPI\r
61InputBarSetPrompt (\r
62 IN CONST CHAR16 *Str\r
63 );\r
64\r
65/**\r
66 Set the size of the string in characters.\r
67\r
68 @param[in] Size The max number of characters to accept.\r
69\r
70 @retval EFI_SUCCESS The operation was successful.\r
71 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
72**/\r
73EFI_STATUS\r
74EFIAPI\r
75InputBarSetStringSize (\r
76 UINTN Size\r
77 );\r
78\r
79/**\r
80 Function to retrieve the input from the user.\r
81\r
82 @retval NULL No input has been received.\r
83 @return The string that was input.\r
84**/\r
85CONST CHAR16*\r
86EFIAPI\r
87InputBarGetString (\r
88 VOID\r
89 );\r
90\r
91#endif\r