You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Device::udev_device method has a safety comment saying you have to make sure that you pass in the same udev Context as the one that you used to create the libinput one.
let dev:*mutudev_device = ffi::libinput_device_get_udev_device(self.ffi)as*mut_;
if dev.is_null(){
None
}else{
// We have to ref the returned udev context as udev_device_get_udev does not
// increase the ref_count but dropping a UdevDevice will unref it
let ctx:*mutudev_context = udev_ref(udev_device_get_udev(dev));
Some(UdevDevice::from_raw_with_context(ctx, dev))
}
}
but that context hasn't been passed in since ea8e779, so i wanted to know: does that function still need to be unsafe? if yes, what do i, as the caller, have to ensure so i don't cause undefined behaviour?
thanks
The text was updated successfully, but these errors were encountered:
the
Device::udev_device
method has a safety comment saying you have to make sure that you pass in the same udevContext
as the one that you used to create the libinput one.input.rs/src/device.rs
Lines 351 to 366 in 40b31d3
but that context hasn't been passed in since ea8e779, so i wanted to know: does that function still need to be unsafe? if yes, what do i, as the caller, have to ensure so i don't cause undefined behaviour?
thanks
The text was updated successfully, but these errors were encountered: