aboutsummaryrefslogtreecommitdiff
path: root/include/backend
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/backend
parent6ec652785587b9027512f1a1bc141c5ed27c3ddb (diff)
backend: introduce backend_get_buffer_caps
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/backend.h13
1 files changed, 13 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