]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.h
initialize variable before error returns.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditTitleBar.h
CommitLineData
2442e62a 1/** @file\r
2 Declares titlebar 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_TITLE_BAR_H_\r
16#define _LIB_TITLE_BAR_H_\r
17\r
18/**\r
19 Initialize a title bar.\r
20\r
21 @param[in] Prompt The prompt to print in the title bar.\r
22\r
23 @retval EFI_SUCCESS The initialization was successful.\r
24 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
25**/\r
26EFI_STATUS\r
27EFIAPI\r
28MainTitleBarInit (\r
29 CONST CHAR16 *Prompt\r
30 );\r
31\r
32/**\r
33 Clean up the memory used.\r
34**/\r
35VOID\r
36EFIAPI\r
37MainTitleBarCleanup (\r
38 VOID\r
39 );\r
40\r
41typedef enum {\r
42 FileTypeNone,\r
43 FileTypeAscii,\r
44 FileTypeUnicode,\r
45 FileTypeDiskBuffer,\r
46 FileTypeMemBuffer,\r
47 FileTypeFileBuffer\r
48} EDIT_FILE_TYPE;\r
49\r
50/**\r
51 Refresh function for MainTitleBar\r
52\r
53 @param[in] FileName The open file's name (or NULL).\r
54 @param[in] FileType The type fo the file.\r
55 @param[in] ReadOnly TRUE if the file is read only. FALSE otherwise.\r
56 @param[in] Modified TRUE if the file was modified. FALSE otherwise.\r
57 @param[in] LastCol The last printable column.\r
58 @param[in] LastRow The last printable row.\r
59\r
60 @retval EFI_SUCCESS The operation was successful.\r
61**/\r
62EFI_STATUS\r
63EFIAPI\r
64MainTitleBarRefresh (\r
65 IN CONST CHAR16 *FileName OPTIONAL,\r
66 IN CONST EDIT_FILE_TYPE FileType,\r
67 IN BOOLEAN ReadOnly,\r
68 IN BOOLEAN Modified,\r
69 IN UINTN LastCol,\r
70 IN UINTN LastRow\r
71 );\r
72\r
73#endif\r