diff options
author | Roman Gilg <subdiff@gmail.com> | 2021-04-12 10:39:51 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-12 11:43:56 +0200 |
commit | b36af22c94ea8e02616f5ab0ca06001f41f69a49 (patch) | |
tree | 9db3987acf485f5e35572a6125462fb458343283 /include | |
parent | b29ac8fbaceeac7f902fc75bb94a13b9cd9a0465 (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/backend.h | 8 | ||||
-rw-r--r-- | include/wlr/backend.h | 7 |
2 files changed, 7 insertions, 8 deletions
diff --git a/include/backend/backend.h b/include/backend/backend.h deleted file mode 100644 index f920cc9f..00000000 --- a/include/backend/backend.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef BACKEND_H -#define BACKEND_H - -#include <wlr/backend.h> - -int backend_get_drm_fd(struct wlr_backend *backend); - -#endif diff --git a/include/wlr/backend.h b/include/wlr/backend.h index 2b869f28..b56e789c 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -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 |