]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/CommonLib.h
There is a limitation on WINDOWS OS for the length of entire file path can’t be large...
[mirror_edk2.git] / BaseTools / Source / C / Common / CommonLib.h
index 0610b21ed08278a401fa34411f810f6796c3417a..2c1db759b0db0e51f0e6ea7857a69d73c4e6626c 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2014, 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
@@ -25,6 +25,12 @@ Abstract:
 #include <Common/UefiBaseTypes.h>\r
 #include <Common/BuildVersion.h>\r
 #define PRINTED_GUID_BUFFER_SIZE  37  // including null-termination\r
+\r
+#define MAX_LONG_FILE_PATH 500\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
 //\r
 // Function declarations\r
 //\r
@@ -145,6 +151,27 @@ PrintGuidToBuffer (
   )\r
 ;\r
 \r
+CHAR8 *\r
+LongFilePath (\r
+ IN CHAR8 *FileName\r
+);\r
+/*++\r
+\r
+Routine Description:\r
+  Convert FileName to the long file path, which can support larger than 260 length. \r
+\r
+Arguments:\r
+  FileName         - FileName. \r
+\r
+Returns:\r
+  LongFilePath      A pointer to the converted long file path.\r
+  \r
+--*/\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
 #define ASSERT(x) assert(x)\r
 \r
 #ifdef __GNUC__\r