summaryrefslogtreecommitdiff
path: root/StdLibPrivateInternalFiles/Include/Device
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-30 00:25:54 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-30 00:25:54 +0000
commitf766dd76fde231ecd4f2e9faf99293e90902cebb (patch)
tree38f845277a463deb34006d84ff1651203dfa425a /StdLibPrivateInternalFiles/Include/Device
parent84c1b22e843a3af1994e2a938a3685f4874462f9 (diff)
downloadedk2-platforms-f766dd76fde231ecd4f2e9faf99293e90902cebb.tar.xz
Changes so that Argv points to narrow-character versions of the command-line arguments.
Fix "long double" handling and differences between MSFT and GCC compilers. Fix compliance issues with ISO/IEC 9899:199409 New Function declarations: setenv(), fparseln(), GetFileNameFromPath(), rename() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12060 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLibPrivateInternalFiles/Include/Device')
-rw-r--r--StdLibPrivateInternalFiles/Include/Device/Console.h5
-rw-r--r--StdLibPrivateInternalFiles/Include/Device/Device.h21
2 files changed, 23 insertions, 3 deletions
diff --git a/StdLibPrivateInternalFiles/Include/Device/Console.h b/StdLibPrivateInternalFiles/Include/Device/Console.h
index 6f65660485..e97ee3fd2c 100644
--- a/StdLibPrivateInternalFiles/Include/Device/Console.h
+++ b/StdLibPrivateInternalFiles/Include/Device/Console.h
@@ -51,10 +51,11 @@ __BEGIN_DECLS
int
EFIAPI
da_ConOpen(
+ IN DeviceNode *DevNode,
IN struct __filedes *filp,
- IN void *DevInstance,
+ IN int DevInstance,
IN CHAR16 *Path,
- IN CHAR16 *Flags
+ IN CHAR16 *MPath
);
__END_DECLS
diff --git a/StdLibPrivateInternalFiles/Include/Device/Device.h b/StdLibPrivateInternalFiles/Include/Device/Device.h
index 68eade0523..cf2053d8b3 100644
--- a/StdLibPrivateInternalFiles/Include/Device/Device.h
+++ b/StdLibPrivateInternalFiles/Include/Device/Device.h
@@ -127,7 +127,7 @@ NormalizePath( const char *path);
**/
RETURN_STATUS
EFIAPI
-ParsePath( const char *path, wchar_t **FullPath, DeviceNode **DevNode, int *Which);
+ParsePath( const char *path, wchar_t **FullPath, DeviceNode **DevNode, int *Which, wchar_t **MapPath);
/** Process a wide character string representing a Mapping Path and extract the instance number.
@@ -192,6 +192,25 @@ wchar_t *
EFIAPI
PathAlias(wchar_t *Path, DeviceNode **Node);
+/**
+ Parses a normalized wide character path and returns a pointer to the entry
+ following the last \. If a \ is not found in the path the return value will
+ be the same as the input value. All error conditions return NULL.
+
+ The behavior when passing in a path that has not been normalized is undefined.
+
+ @param Path - A pointer to a wide character string containing a path to a
+ directory or a file.
+
+ @return Pointer to the file name or terminal directory. NULL if an error is
+ detected.
+**/
+wchar_t *
+EFIAPI
+GetFileNameFromPath(
+ const wchar_t *Path
+ );
+
__END_DECLS
#endif /* __DEV_UTILITY_H__ */