mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend: move get_drm_fd to public interface
The get_drm_fd was made available in an internal header with a53ab146f. Move it
now to the public header so consumers opting in to the unstable interfaces can
make use of it.
This commit is contained in:
parent
b29ac8fbac
commit
b36af22c94
5 changed files with 10 additions and 14 deletions
|
|
@ -57,5 +57,12 @@ struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend);
|
|||
* Returns the clock used by the backend for presentation feedback.
|
||||
*/
|
||||
clockid_t wlr_backend_get_presentation_clock(struct wlr_backend *backend);
|
||||
/**
|
||||
* Returns the DRM node file descriptor used by the backend's underlying
|
||||
* platform. Can be used by consumers for additional rendering operations.
|
||||
* The consumer must not close the file descriptor since the backend continues
|
||||
* to have ownership of it.
|
||||
*/
|
||||
int wlr_backend_get_drm_fd(struct wlr_backend *backend);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue