X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLevel2CommandsLib%2FUefiShellLevel2CommandsLib.h;h=857487fd809341aad7b4adf4894dd9f9b08dde22;hb=7c6f0d14c3db1ade3e1ef701e39babd7a314eb56;hp=49e187fc7aaeed982555304f5c618e675a9ff489;hpb=a1d4bfcc3f58a9ed0ce6118556016c7c058d01b1;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h index 49e187fc7a..857487fd80 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h @@ -9,7 +9,7 @@ * functions are non-interactive only - Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -24,14 +24,15 @@ #define _UEFI_SHELL_LEVEL2_COMMANDS_LIB_H_ #include -#include -#include -#include +#include +#include + +#include +#include #include #include #include -#include #include #include @@ -49,7 +50,6 @@ extern CONST CHAR16 mFileName[]; extern EFI_HANDLE gShellLevel2HiiHandle; -extern CONST EFI_GUID gShellLevel2HiiGuid; /** Function for 'attrib' command. @@ -263,7 +263,6 @@ ShellCommandRunMv ( @retval other pointer to a fuly qualified path. **/ CHAR16* -EFIAPI GetFullyQualifiedPath( IN CONST CHAR16* Path ); @@ -276,7 +275,6 @@ GetFullyQualifiedPath( @retval EFI_SUCCESS The operation was successful. **/ EFI_STATUS -EFIAPI VerifyIntermediateDirectories ( IN CONST CHAR16 *Path ); @@ -292,13 +290,28 @@ VerifyIntermediateDirectories ( @return non-zero if the strings are different. **/ CONST CHAR16* -EFIAPI StrniCmp( IN CONST CHAR16 *Source, IN CONST CHAR16 *Target, IN CONST UINTN Count ); +/** + Cleans off all the quotes in the string. + + @param[in] OriginalString pointer to the string to be cleaned. + @param[out] CleanString The new string with all quotes removed. + Memory allocated in the function and free + by caller. + + @retval EFI_SUCCESS The operation was successful. +**/ +EFI_STATUS +ShellLevel2StripQuotes ( + IN CONST CHAR16 *OriginalString, + OUT CHAR16 **CleanString + ); + /** Function for 'Vol' command. @@ -312,5 +325,44 @@ ShellCommandRunVol ( IN EFI_SYSTEM_TABLE *SystemTable ); +/** + Function to Copy one file to another location + + If the destination exists the user will be prompted and the result put into *resp + + @param[in] Source pointer to source file name + @param[in] Dest pointer to destination file name + @param[out] Resp pointer to response from question. Pass back on looped calling + @param[in] SilentMode whether to run in quiet mode or not + @param[in] CmdName Source command name requesting single file copy + + @retval SHELL_SUCCESS The source file was copied to the destination +**/ +SHELL_STATUS +CopySingleFile( + IN CONST CHAR16 *Source, + IN CONST CHAR16 *Dest, + OUT VOID **Resp, + IN BOOLEAN SilentMode, + IN CONST CHAR16 *CmdName + ); + +/** + Delete a node and all nodes under it (including sub directories). + + @param[in] Node The node to start deleting with. + @param[in] Quiet TRUE to print no messages. + + @retval SHELL_SUCCESS The operation was successful. + @retval SHELL_ACCESS_DENIED A file was read only. + @retval SHELL_ABORTED The abort message was received. + @retval SHELL_DEVICE_ERROR A device error occured reading this Node. +**/ +SHELL_STATUS +CascadeDelete( + IN EFI_SHELL_FILE_INFO *Node, + IN CONST BOOLEAN Quiet + ); + #endif