Home | History | Annotate | Download | only in UefiShellCommandLib
      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   (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 
     23 #include <Protocol/SimpleFileSystem.h>
     24 #include <Protocol/LoadedImage.h>
     25 #include <Protocol/EfiShellInterface.h>
     26 #include <Protocol/EfiShellEnvironment2.h>
     27 #include <Protocol/Shell.h>
     28 #include <Protocol/ShellParameters.h>
     29 #include <Protocol/UnicodeCollation.h>
     30 #include <Protocol/BlockIo.h>
     31 #include <Protocol/ShellDynamicCommand.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 #include <Library/UefiLib.h>
     47 
     48 typedef struct{
     49   LIST_ENTRY                  Link;
     50   CHAR16                      *CommandString;
     51   SHELL_GET_MAN_FILENAME      GetManFileName;
     52   SHELL_RUN_COMMAND           CommandHandler;
     53   BOOLEAN                     LastError;
     54   EFI_HANDLE                  HiiHandle;
     55   EFI_STRING_ID               ManFormatHelp;
     56 } SHELL_COMMAND_INTERNAL_LIST_ENTRY;
     57 
     58 typedef struct {
     59   LIST_ENTRY Link;
     60   SCRIPT_FILE *Data;
     61 } SCRIPT_FILE_LIST;
     62 
     63 typedef struct {
     64   EFI_FILE_PROTOCOL *FileHandle;
     65   CHAR16            *Path;
     66 } SHELL_COMMAND_FILE_HANDLE;
     67 
     68 
     69 #endif //_UEFI_COMMAND_LIB_INTERNAL_HEADER_
     70 
     71