summaryrefslogtreecommitdiffstats
path: root/vendor/r-efi/src/protocols/decompress.rs
blob: 640369ad049d3cd19e724c15a3cfa839990fff2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Decompress Protocol
//!
//! The decompress protocol provides a decompression service that allows a compressed source
//! buffer in memory to be decompressed into a destination buffer in memory.

pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
    0xd8117cfe,
    0x94a6,
    0x11d4,
    0x9a,
    0x3a,
    &[0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d],
);

pub type ProtocolGetInfo = eficall! {fn(
    *mut Protocol,
    *mut core::ffi::c_void,
    u32,
    *mut u32,
    *mut u32,
) -> crate::base::Status};

pub type ProtocolDecompress = eficall! {fn(
    *mut Protocol,
    *mut core::ffi::c_void,
    u32,
    *mut core::ffi::c_void,
    u32,
    *mut core::ffi::c_void,
    u32,
) -> crate::base::Status};

#[repr(C)]
pub struct Protocol {
    pub get_info: ProtocolGetInfo,
    pub decompress: ProtocolDecompress,
}