Debian Codegraph @

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

raw
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
6 pub type ProtocolCreateChild = eficall! {fn(
7 *mut Protocol,
8 *mut crate::base::Handle,
9 ) -> crate::base::Status};
10
11 pub type ProtocolDestroyChild = eficall! {fn(
12 *mut Protocol,
13 crate::base::Handle,
14 ) -> crate::base::Status};
15
16 #[repr(C)]
17 pub struct Protocol {
18 pub create_child: ProtocolCreateChild,
19 pub destroy_child: ProtocolDestroyChild,
20 }