]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.h
ShellPkg/Dp: Add null pointer check
[mirror_edk2.git] / ShellPkg / Library / UefiShellCommandLib / UefiShellCommandLib.h
1 /** @file
2 Provides interface to shell internal functions for shell commands.
3
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>
5 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _UEFI_COMMAND_LIB_INTERNAL_HEADER_
17 #define _UEFI_COMMAND_LIB_INTERNAL_HEADER_
18
19 #include <Uefi.h>
20
21 #include <Guid/FileInfo.h>
22 #include <Guid/GlobalVariable.h>
23
24 #include <Protocol/SimpleFileSystem.h>
25 #include <Protocol/LoadedImage.h>
26 #include <Protocol/EfiShellInterface.h>
27 #include <Protocol/EfiShellEnvironment2.h>
28 #include <Protocol/Shell.h>
29 #include <Protocol/ShellParameters.h>
30 #include <Protocol/UnicodeCollation.h>
31 #include <Protocol/BlockIo.h>
32 #include <Protocol/ShellDynamicCommand.h>
33
34 #include <Library/DevicePathLib.h>
35 #include <Library/SortLib.h>
36 #include <Library/HandleParsingLib.h>
37 #include <Library/BaseLib.h>
38 #include <Library/BaseMemoryLib.h>
39 #include <Library/DebugLib.h>
40 #include <Library/MemoryAllocationLib.h>
41 #include <Library/PcdLib.h>
42 #include <Library/ShellCommandLib.h>
43 #include <Library/PrintLib.h>
44 #include <Library/ShellLib.h>
45 #include <Library/HiiLib.h>
46 #include <Library/UefiBootServicesTableLib.h>
47 #include <Library/UefiLib.h>
48
49 typedef struct{
50 LIST_ENTRY Link;
51 CHAR16 *CommandString;
52 SHELL_GET_MAN_FILENAME GetManFileName;
53 SHELL_RUN_COMMAND CommandHandler;
54 BOOLEAN LastError;
55 EFI_HANDLE HiiHandle;
56 EFI_STRING_ID ManFormatHelp;
57 } SHELL_COMMAND_INTERNAL_LIST_ENTRY;
58
59 typedef struct {
60 LIST_ENTRY Link;
61 SCRIPT_FILE *Data;
62 } SCRIPT_FILE_LIST;
63
64 typedef struct {
65 EFI_FILE_PROTOCOL *FileHandle;
66 CHAR16 *Path;
67 } SHELL_COMMAND_FILE_HANDLE;
68
69
70 #endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_
71