1 // Copyright 2016 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 #include <efi/types.h> 8 #include <efi/protocol/device-path.h> 9 #include <stdbool.h> 10 11 #define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \ 12 {0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c}} 13 extern efi_guid DevicePathToTextProtocol; 14 15 typedef struct efi_device_path_to_text_protocol { 16 char16_t* (*ConvertDeviceNodeToText) (const efi_device_path_protocol* dev_node, 17 bool display_only, bool allow_shortcuts) EFIAPI; 18 19 char16_t* (*ConvertDevicePathToText) (const efi_device_path_protocol* dev_path, 20 bool display_only, bool allow_shortcuts) EFIAPI; 21 } efi_device_path_to_text_protocol; 22