pub type FnDeviceWaitIdle = extern "system" fn(device: Device) -> Result;