]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/FileHandleLib.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Library / FileHandleLib.h
index 00706f964dfd723d4d9a99157bc36e04476083d2..055177348186a3a27549f4c135ef1373934f1534 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to EFI_FILE_HANDLE functionality.\r
 \r
-  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,6 +16,7 @@
 #define _FILE_HANDLE_LIBRARY_HEADER_\r
 \r
 #include <Protocol/SimpleFileSystem.h>\r
+#include <Guid/FileInfo.h>\r
 \r
 /// The tag for use in identifying UNICODE files.\r
 /// If the file is UNICODE, the first 16 bits of the file will equal this value.\r
@@ -184,9 +185,9 @@ FileHandleDelete (
   has the effect of starting the read process of the directory entries over again.\r
 \r
   @param[in] FileHandle         The file handle on which the position is being set.\r
-  @param[in] Position           The byte position from the begining of the file.\r
+  @param[in] Position           The byte position from the beginning of the file.\r
 \r
-  @retval EFI_SUCCESS           The operation completed sucessfully.\r
+  @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval EFI_UNSUPPORTED       The request for non-zero is not valid on\r
                                 directories.\r
   @retval INVALID_PARAMETER     One of the parameters has an invalid value.\r
@@ -207,7 +208,7 @@ FileHandleSetPosition (
   if FileHandle is a directory.\r
 \r
   @param[in] FileHandle         The open file handle on which to get the position.\r
-  @param[out] Position          The byte position from begining of file.\r
+  @param[out] Position          The byte position from beginning of file.\r
 \r
   @retval EFI_SUCCESS           The operation completed successfully.\r
   @retval INVALID_PARAMETER     One of the parameters has an invalid value.\r
@@ -248,8 +249,8 @@ FileHandleFlush (
   @param[in] DirHandle          Handle to open file.\r
 \r
   @retval EFI_SUCCESS           DirHandle is a directory.\r
-  @retval EFI_INVALID_PARAMETER DirHandle is NULL. \r
-                                The file information returns from FileHandleGetInfo is NULL. \r
+  @retval EFI_INVALID_PARAMETER DirHandle is NULL.\r
+                                The file information returns from FileHandleGetInfo is NULL.\r
   @retval EFI_NOT_FOUND         DirHandle is not a directory.\r
 **/\r
 EFI_STATUS\r
@@ -322,7 +323,7 @@ FileHandleFindNextFile(
   @param[in] FileHandle         The file handle from which size is retrieved.\r
   @param[out] Size              The pointer to size.\r
 \r
-  @retval EFI_SUCCESS           Operation was completed sucessfully.\r
+  @retval EFI_SUCCESS           Operation was completed successfully.\r
   @retval EFI_DEVICE_ERROR      Cannot access the file.\r
   @retval EFI_INVALID_PARAMETER FileHandle is NULL.\r
                                 Size is NULL.\r
@@ -356,8 +357,8 @@ FileHandleSetSize (
 \r
 /**\r
   Function to get a full filename given a EFI_FILE_HANDLE somewhere lower on the\r
-  directory 'stack'. If the file is a directory, then append the '\' char at the \r
-  end of name string. If it's not a directory, then the last '\' should not be \r
+  directory 'stack'. If the file is a directory, then append the '\' char at the\r
+  end of name string. If it's not a directory, then the last '\' should not be\r
   added.\r
 \r
   @param[in] Handle             Handle to the Directory or File to create path to.\r
@@ -438,11 +439,11 @@ FileHandleReturnLine(
 \r
 /**\r
   Function to write a line of text to a file.\r
-  \r
-  If the file is a Unicode file (with UNICODE file tag) then write the unicode \r
+\r
+  If the file is a Unicode file (with UNICODE file tag) then write the unicode\r
   text.\r
   If the file is an ASCII file then write the ASCII text.\r
-  If the size of file is zero (without file tag at the beginning) then write \r
+  If the size of file is zero (without file tag at the beginning) then write\r
   ASCII text as default.\r
 \r
   @param[in]     Handle         FileHandle to write to.\r
@@ -452,7 +453,7 @@ FileHandleReturnLine(
   @retval  EFI_SUCCESS            The data was written.\r
                                   Buffer is NULL.\r
   @retval  EFI_INVALID_PARAMETER  Handle is NULL.\r
-  @retval  EFI_OUT_OF_RESOURCES   Unable to allocate temporary space for ASCII \r
+  @retval  EFI_OUT_OF_RESOURCES   Unable to allocate temporary space for ASCII\r
                                   string due to out of resources.\r
 \r
   @sa FileHandleWrite\r