| 1 |
//! Device Path to Text Protocol |
| 2 |
//! |
| 3 |
//! Convert device nodes and paths to text. |
| 4 |
|
| 5 |
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields( |
| 6 |
0x8b843e20, |
| 7 |
0x8132, |
| 8 |
0x4852, |
| 9 |
0x90, |
| 10 |
0xcc, |
| 11 |
&[0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c], |
| 12 |
); |
| 13 |
|
| 14 |
pub type DevicePathToTextNode = eficall! {fn( |
| 15 |
*mut crate::protocols::device_path::Protocol, |
| 16 |
crate::base::Boolean, |
| 17 |
crate::base::Boolean, |
| 18 |
) -> *mut crate::base::Char16}; |
| 19 |
|
| 20 |
pub type DevicePathToTextPath = eficall! {fn( |
| 21 |
*mut crate::protocols::device_path::Protocol, |
| 22 |
crate::base::Boolean, |
| 23 |
crate::base::Boolean, |
| 24 |
) -> *mut crate::base::Char16}; |
| 25 |
|
| 26 |
#[repr(C)] |
| 27 |
pub struct Protocol { |
| 28 |
pub convert_device_node_to_text: DevicePathToTextNode, |
| 29 |
pub convert_device_path_to_text: DevicePathToTextPath, |
| 30 |
} |