pub type DeviceUnrealize = Option<unsafe extern "C" fn(dev: *mut DeviceState, errp: *mut *mut Error)>;