diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/backend.h | 13 | ||||
-rw-r--r-- | include/wlr/backend/interface.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/backend/backend.h b/include/backend/backend.h new file mode 100644 index 00000000..8c7440c3 --- /dev/null +++ b/include/backend/backend.h @@ -0,0 +1,13 @@ +#ifndef BACKEND_WLR_BACKEND_H +#define BACKEND_WLR_BACKEND_H + +#include <wlr/backend.h> + +/** + * Get the supported buffer capabilities. + * + * This functions returns a bitfield of supported wlr_buffer_cap. + */ +uint32_t backend_get_buffer_caps(struct wlr_backend *backend); + +#endif diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h index 3426bb45..feed8d2d 100644 --- a/include/wlr/backend/interface.h +++ b/include/wlr/backend/interface.h @@ -20,6 +20,7 @@ struct wlr_backend_impl { struct wlr_session *(*get_session)(struct wlr_backend *backend); clockid_t (*get_presentation_clock)(struct wlr_backend *backend); int (*get_drm_fd)(struct wlr_backend *backend); + uint32_t (*get_buffer_caps)(struct wlr_backend *backend); }; /** |