• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2   Provides interface to shell internal functions for shell commands.
3 
4   Copyright (c) 2006 - 2014, 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 _UEFI_COMMAND_LIB_INTERNAL_HEADER_
16 #define _UEFI_COMMAND_LIB_INTERNAL_HEADER_
17 
18 #include <Uefi.h>
19 #include <ShellBase.h>
20 
21 #include <Guid/FileInfo.h>
22 
23 #include <Protocol/SimpleFileSystem.h>
24 #include <Protocol/LoadedImage.h>
25 #include <Protocol/EfiShellInterface.h>
26 #include <Protocol/EfiShellEnvironment2.h>
27 #include <Protocol/EfiShell.h>
28 #include <Protocol/EfiShellParameters.h>
29 #include <Protocol/UnicodeCollation.h>
30 #include <Protocol/BlockIo.h>
31 #include <Protocol/EfiShellDynamicCommand.h>
32 
33 #include <Library/DevicePathLib.h>
34 #include <Library/SortLib.h>
35 #include <Library/HandleParsingLib.h>
36 #include <Library/BaseLib.h>
37 #include <Library/BaseMemoryLib.h>
38 #include <Library/DebugLib.h>
39 #include <Library/MemoryAllocationLib.h>
40 #include <Library/PcdLib.h>
41 #include <Library/ShellCommandLib.h>
42 #include <Library/PrintLib.h>
43 #include <Library/ShellLib.h>
44 #include <Library/HiiLib.h>
45 #include <Library/UefiBootServicesTableLib.h>
46 
47 typedef struct{
48   LIST_ENTRY                  Link;
49   CHAR16                      *CommandString;
50   SHELL_GET_MAN_FILENAME      GetManFileName;
51   SHELL_RUN_COMMAND           CommandHandler;
52   BOOLEAN                     LastError;
53   EFI_HANDLE                  HiiHandle;
54   EFI_STRING_ID               ManFormatHelp;
55 } SHELL_COMMAND_INTERNAL_LIST_ENTRY;
56 
57 typedef struct {
58   LIST_ENTRY Link;
59   SCRIPT_FILE *Data;
60 } SCRIPT_FILE_LIST;
61 
62 typedef struct {
63   EFI_FILE_PROTOCOL *FileHandle;
64   CHAR16            *Path;
65 } SHELL_COMMAND_FILE_HANDLE;
66 
67 
68 #endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_
69 
70