| 1 |
//! Load File Protocol |
| 2 |
//! |
| 3 |
//! The Load File protocol is used to obtain files, that are primarily boot |
| 4 |
//! options, from arbitrary devices. |
| 5 |
|
| 6 |
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields( |
| 7 |
0x56ec3091, |
| 8 |
0x954c, |
| 9 |
0x11d2, |
| 10 |
0x8e, |
| 11 |
0x3f, |
| 12 |
&[0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b], |
| 13 |
); |
| 14 |
|
| 15 |
pub type ProtocolLoadFile = eficall! {fn( |
| 16 |
*mut Protocol, |
| 17 |
*mut crate::protocols::device_path::Protocol, |
| 18 |
crate::base::Boolean, |
| 19 |
*mut usize, |
| 20 |
*mut core::ffi::c_void |
| 21 |
) -> crate::base::Status}; |
| 22 |
|
| 23 |
#[repr(C)] |
| 24 |
pub struct Protocol { |
| 25 |
pub load_file: ProtocolLoadFile, |
| 26 |
} |