**/\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
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