Function input_sys::libinput_device_unref
[−]
[src]
pub unsafe extern fn libinput_device_unref(device: *mut libinput_device)
-> *mut libinput_device
@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