aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-28 10:01:49 -0400
committerSimon Ser <contact@emersion.fr>2021-04-28 20:55:57 +0200
commit6ec652785587b9027512f1a1bc141c5ed27c3ddb (patch)
treed7ec3f89d06e636f07c74e52e1d347ba1c56b276
parenta8c91fbac9cad234fc074a9a7fea30bb7fb14489 (diff)
types/wlr_buffer: introduce wlr_buffer_cap
-rw-r--r--include/types/wlr_buffer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/types/wlr_buffer.h b/include/types/wlr_buffer.h
index 35b0dce0..f9d2974d 100644
--- a/include/types/wlr_buffer.h
+++ b/include/types/wlr_buffer.h
@@ -4,6 +4,18 @@
#include <wlr/types/wlr_buffer.h>
/**
+ * Buffer capabilities.
+ *
+ * These bits indicate the features supported by a wlr_buffer. There is one bit
+ * per function in wlr_buffer_impl.
+ */
+enum wlr_buffer_cap {
+ WLR_BUFFER_CAP_DATA_PTR = 1 << 0,
+ WLR_BUFFER_CAP_DMABUF = 1 << 1,
+ WLR_BUFFER_CAP_SHM = 1 << 2,
+};
+
+/**
* Access a pointer to the allocated data from the underlying implementation,
* its format and its stride.
*