aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-28 10:09:33 -0400
committerSimon Ser <contact@emersion.fr>2021-04-28 20:55:57 +0200
commit144189674edbf908d72467cd497a0250b3d80b8b (patch)
treec71455402e227053381aaed7038ba3a477a6079b /include
parent6ec652785587b9027512f1a1bc141c5ed27c3ddb (diff)
backend: introduce backend_get_buffer_caps
Diffstat (limited to 'include')
-rw-r--r--include/backend/backend.h13
-rw-r--r--include/wlr/backend/interface.h1
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);
};
/**