diff options
Diffstat (limited to 'vendor/r-efi/src/protocols/device_path_from_text.rs')
-rw-r--r-- | vendor/r-efi/src/protocols/device_path_from_text.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/r-efi/src/protocols/device_path_from_text.rs b/vendor/r-efi/src/protocols/device_path_from_text.rs new file mode 100644 index 000000000..b9191edd9 --- /dev/null +++ b/vendor/r-efi/src/protocols/device_path_from_text.rs @@ -0,0 +1,26 @@ +//! Device Path From Text Protocol +//! +//! Convert text to device paths and device nodes. + +pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields( + 0x5c99a21, + 0xc70f, + 0x4ad2, + 0x8a, + 0x5f, + &[0x35, 0xdf, 0x33, 0x43, 0xf5, 0x1e], +); + +pub type DevicePathFromTextNode = eficall! {fn( + *const crate::base::Char16, +) -> *mut crate::protocols::device_path::Protocol}; + +pub type DevicePathFromTextPath = eficall! {fn( + *const crate::base::Char16, +) -> *mut crate::protocols::device_path::Protocol}; + +#[repr(C)] +pub struct Protocol { + pub convert_text_to_device_node: DevicePathFromTextNode, + pub convert_text_to_device_path: DevicePathFromTextPath, +} |