]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h
ShellPkg: Fix EFIAPI usage inconsistencies
[mirror_edk2.git] / ShellPkg / Library / UefiShellCommandLib / UefiShellCommandLib.h
CommitLineData
a405b86d 1/** @file\r
2 Provides interface to shell internal functions for shell commands.\r
3\r
fbec9c0f 4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved. <BR>\r
a405b86d 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 _UEFI_COMMAND_LIB_INTERNAL_HEADER_\r
16#define _UEFI_COMMAND_LIB_INTERNAL_HEADER_\r
17\r
18#include <Uefi.h>\r
19#include <ShellBase.h>\r
20\r
21#include <Guid/FileInfo.h>\r
22\r
23#include <Protocol/SimpleFileSystem.h>\r
24#include <Protocol/LoadedImage.h>\r
25#include <Protocol/EfiShellInterface.h>\r
26#include <Protocol/EfiShellEnvironment2.h>\r
27#include <Protocol/EfiShell.h>\r
28#include <Protocol/EfiShellParameters.h>\r
29#include <Protocol/UnicodeCollation.h>\r
30#include <Protocol/BlockIo.h>\r
31\r
32#include <Library/DevicePathLib.h>\r
33#include <Library/SortLib.h>\r
34#include <Library/HandleParsingLib.h>\r
35#include <Library/BaseLib.h>\r
36#include <Library/BaseMemoryLib.h>\r
37#include <Library/DebugLib.h>\r
38#include <Library/MemoryAllocationLib.h>\r
39#include <Library/PcdLib.h>\r
8d095e78 40#include <Library/ShellCommandLib.h>\r
a405b86d 41#include <Library/PrintLib.h>\r
42#include <Library/ShellLib.h>\r
43#include <Library/HiiLib.h>\r
44#include <Library/UefiBootServicesTableLib.h>\r
45\r
46typedef struct{\r
47 LIST_ENTRY Link;\r
48 CHAR16 *CommandString;\r
49 SHELL_GET_MAN_FILENAME GetManFileName;\r
50 SHELL_RUN_COMMAND CommandHandler;\r
51 BOOLEAN LastError;\r
52 EFI_HANDLE HiiHandle;\r
53 EFI_STRING_ID ManFormatHelp;\r
54} SHELL_COMMAND_INTERNAL_LIST_ENTRY;\r
55\r
56typedef struct {\r
57 LIST_ENTRY Link;\r
58 SCRIPT_FILE *Data;\r
59} SCRIPT_FILE_LIST;\r
60\r
61/**\r
62 Function to cleanup all memory from a SCRIPT_FILE structure.\r
63\r
64 @param[in] Script The pointer to the structure to cleanup.\r
65**/\r
66VOID\r
67EFIAPI\r
68DeleteScriptFileStruct (\r
69 IN SCRIPT_FILE *Script\r
70 );\r
71\r
72typedef struct {\r
73 EFI_FILE_PROTOCOL *FileHandle;\r
74 CHAR16 *Path;\r
75} SHELL_COMMAND_FILE_HANDLE;\r
76\r
77\r
78#endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_\r
79\r