Function libinput_device_unref
pub unsafe extern "C" fn libinput_device_unref(
device: *mut libinput_device,
) -> *mut libinput_device
Expand description
@ingroup device
Decrease 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 NULL if the device was destroyed, otherwise the passed device