Debian Codegraph @

.cargo/vendor/r-efi/src/protocols/device_path_from_text.rs

raw
1 //! Device Path From Text Protocol
2 //!
3 //! Convert text to device paths and device nodes.
4
5 pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
6 0x5c99a21,
7 0xc70f,
8 0x4ad2,
9 0x8a,
10 0x5f,
11 &[0x35, 0xdf, 0x33, 0x43, 0xf5, 0x1e],
12 );
13
14 pub type DevicePathFromTextNode = eficall! {fn(
15 *const crate::base::Char16,
16 ) -> *mut crate::protocols::device_path::Protocol};
17
18 pub type DevicePathFromTextPath = eficall! {fn(
19 *const crate::base::Char16,
20 ) -> *mut crate::protocols::device_path::Protocol};
21
22 #[repr(C)]
23 pub struct Protocol {
24 pub convert_text_to_device_node: DevicePathFromTextNode,
25 pub convert_text_to_device_path: DevicePathFromTextPath,
26 }