]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLibPrivateInternalFiles/Include/Device/Device.h
Changes so that Argv points to narrow-character versions of the command-line arguments.
[mirror_edk2.git] / StdLibPrivateInternalFiles / Include / Device / Device.h
index 68eade05239d487af6eed4b436441369ea2eba90..cf2053d8b3efabd84a864cebe5352d2c70480aef 100644 (file)
@@ -127,7 +127,7 @@ NormalizePath( const char *path);
 **/\r
 RETURN_STATUS\r
 EFIAPI\r
-ParsePath( const char *path, wchar_t **FullPath, DeviceNode **DevNode, int *Which);\r
+ParsePath( const char *path, wchar_t **FullPath, DeviceNode **DevNode, int *Which, wchar_t **MapPath);\r
 \r
 /** Process a wide character string representing a Mapping Path and extract the instance number.\r
 \r
@@ -192,6 +192,25 @@ wchar_t *
 EFIAPI\r
 PathAlias(wchar_t *Path, DeviceNode **Node);\r
 \r
+/**\r
+  Parses a normalized wide character path and returns a pointer to the entry\r
+  following the last \.  If a \ is not found in the path the return value will\r
+  be the same as the input value.  All error conditions return NULL.\r
+\r
+  The behavior when passing in a path that has not been normalized is undefined.\r
+\r
+  @param  Path - A pointer to a wide character string containing a path to a\r
+                 directory or a file.\r
+\r
+  @return Pointer to the file name or terminal directory.  NULL if an error is\r
+          detected.\r
+**/\r
+wchar_t *\r
+EFIAPI\r
+GetFileNameFromPath(\r
+  const wchar_t   *Path\r
+  );\r
+\r
 __END_DECLS\r
 \r
 #endif  /* __DEV_UTILITY_H__ */\r