]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/Library/EfiFileLib.h
Added CWD to EfiFileLib. Fix some X64 warnings.
[mirror_edk2.git] / EmbeddedPkg / Include / Library / EfiFileLib.h
index 992d326997648929fcedad6a2f51ec550bae9b3c..4e3c80d7ecbdd5e216931c587f74d58f6a6aa65d 100644 (file)
@@ -311,5 +311,38 @@ UINTN
 EfiGetDeviceCounts (\r
   IN  EFI_OPEN_FILE_TYPE     Type\r
   );\r
+  \r
+\r
+/**\r
+  Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+  the path does not contain a device name, The CWD is prepended to the path.\r
+  \r
+  @param  Cwd     Current Working Directory to set\r
+\r
+\r
+  @return EFI_SUCCESS           CWD is set\r
+  @return EFI_INVALID_PARAMETER Cwd is not a valid device:path\r
+\r
+**/\r
+EFI_STATUS\r
+EfiSetCwd (\r
+  IN  CHAR8   *Cwd\r
+  );  \r
+\r
+/**\r
+  Set the Curent Working Directory (CWD). If a call is made to EfiOpen () and \r
+  the path does not contain a device name, The CWD is prepended to the path.\r
+  \r
+  @param  Cwd     Current Working Directory \r
+\r
+\r
+  @return NULL    No CWD set\r
+  @return 'other' malloc'ed buffer contains CWD.\r
+  \r
+**/\r
+CHAR8 *\r
+EfiGettCwd (\r
+  VOID\r
+  );  \r
 \r
 #endif\r