uefi_raw/protocol/
driver.rsuse crate::{guid, Guid, Handle, Status};
#[derive(Debug)]
#[repr(C)]
pub struct ComponentName2Protocol {
pub get_driver_name: unsafe extern "efiapi" fn(
this: *const Self,
language: *const u8,
driver_name: *mut *const u16,
) -> Status,
pub get_controller_name: unsafe extern "efiapi" fn(
this: *const Self,
controller_handle: Handle,
child_handle: Handle,
language: *const u8,
controller_name: *mut *const u16,
) -> Status,
pub supported_languages: *const u8,
}
impl ComponentName2Protocol {
pub const GUID: Guid = guid!("6a7a5cff-e8d9-4f70-bada-75ab3025ce14");
pub const DEPRECATED_COMPONENT_NAME_GUID: Guid = guid!("107a772c-d5e1-11d4-9a46-0090273fc14d");
}
#[derive(Debug)]
#[repr(C)]
pub struct ServiceBindingProtocol {
pub create_child:
unsafe extern "efiapi" fn(this: *mut Self, child_handle: *mut Handle) -> Status,
pub destroy_child: unsafe extern "efiapi" fn(this: *mut Self, child_handle: Handle) -> Status,
}