Function libinput_device_ref
pub unsafe extern "C" fn libinput_device_ref(
device: *mut libinput_device,
) -> *mut libinput_device
Expand description
@ingroup device
Increase the refcount of the input device. An input device will be freed whenever the refcount reaches 0. This may happen during libinput_dispatch() if the device was removed from the system. A caller must ensure to reference the device correctly to avoid dangling pointers.
@param device A previously obtained device @return The passed device