pub type CastingDevice = *mut c_void;