r_efi/protocols/
service_binding.rs

1//! Service Binding Protocol
2//!
3//! Provides services that are required to create and destroy child handles
4//! that support a given set of protocols.
5
6pub type ProtocolCreateChild = eficall! {fn(
7    *mut Protocol,
8    *mut crate::base::Handle,
9) -> crate::base::Status};
10
11pub type ProtocolDestroyChild = eficall! {fn(
12    *mut Protocol,
13    crate::base::Handle,
14) -> crate::base::Status};
15
16#[repr(C)]
17pub struct Protocol {
18    pub create_child: ProtocolCreateChild,
19    pub destroy_child: ProtocolDestroyChild,
20}