Skip to content
Commit 57e0b055 authored by Simon Ser's avatar Simon Ser
Browse files

xf86drm: add drmGetDeviceFromDevId



This adds a function to get a drmDevicePtr from a dev_t identifier
of a device. This is useful for Wayland that uses these to identify
devices over the protocol.

This is done by taking the implementation of drmGetDevice2, and removing
the call to fstat to find the dev_t.

Signed-off-by: default avatarScott Anderson <scott.anderson@collabora.com>
Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
parent dd3d6dd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment