]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c
Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToTe...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / DevicePath.c
CommitLineData
5c08e117 1/** @file\r
2 BDS internal function define the default device path string, it can be\r
3 replaced by platform device path.\r
4\r
863986b3 5Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
180a5a35 6This program and the accompanying materials\r
5c08e117 7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "InternalBdsLib.h"\r
17\r
5c08e117 18/**\r
19 This function converts an input device structure to a Unicode string.\r
20\r
21 @param DevPath A pointer to the device path structure.\r
22\r
23 @return A new allocated Unicode string that represents the device path.\r
24\r
25**/\r
26CHAR16 *\r
27EFIAPI\r
28DevicePathToStr (\r
29 IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r
30 )\r
31{\r
863986b3 32 return ConvertDevicePathToText (DevPath, TRUE, TRUE);\r
5c08e117 33}\r