]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDevicePath.c
Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToTe...
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / SecureBootConfigDxe / SecureBootConfigDevicePath.c
1 /** @file
2 Internal function defines the default device path string for SecureBoot configuration module.
3
4 Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "SecureBootConfigImpl.h"
16
17
18 /**
19 This function converts an input device structure to a Unicode string.
20
21 @param[in] DevPath A pointer to the device path structure.
22
23 @return A new allocated Unicode string that represents the device path.
24
25 **/
26 CHAR16 *
27 EFIAPI
28 DevicePathToStr (
29 IN EFI_DEVICE_PATH_PROTOCOL *DevPath
30 )
31 {
32 return ConvertDevicePathToText (
33 DevPath,
34 FALSE,
35 TRUE
36 );
37 }
38