render: document new wlr_renderer_get_drm_fd() expectations

This commit is contained in:
Simon Ser 2023-10-05 16:16:36 +02:00
parent c0ffee9715
commit 79cb0c8fd7

View file

@ -146,6 +146,8 @@ bool wlr_renderer_init_wl_shm(struct wlr_renderer *r,
/**
* Obtains the FD of the DRM device used for rendering, or -1 if unavailable.
*
* The FD is guaranteed to be a DRM render node.
*
* The caller doesn't have ownership of the FD, it must not close it.
*/
int wlr_renderer_get_drm_fd(struct wlr_renderer *r);