VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.h@ 58464

最後變更 在這個檔案從58464是 48674,由 vboxsync 提交於 12 年 前

EFI: Export newly imported tinaocore UEFI sources to OSE.

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette