Function input_sys::libinput_device_get_udev_device[][src]

pub unsafe extern "C" fn libinput_device_get_udev_device(
    device: *mut libinput_device
) -> *mut udev_device
Expand description

@ingroup device

Return a udev handle to the device that is this libinput device, if any. The returned handle has a refcount of at least 1, the caller must call udev_device_unref() once to release the associated resources. See the [libudev documentation] (http://www.freedesktop.org/software/systemd/libudev/) for details.

Some devices may not have a udev device, or the udev device may be unobtainable. This function returns NULL if no udev device was available.

Calling this function multiple times for the same device may not return the same udev handle each time.

@param device A previously obtained device @return A udev handle to the device with a refcount of >= 1 or NULL. @retval NULL This device is not represented by a udev device