From 6ec652785587b9027512f1a1bc141c5ed27c3ddb Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 28 Apr 2021 10:01:49 -0400 Subject: [PATCH] types/wlr_buffer: introduce wlr_buffer_cap --- include/types/wlr_buffer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ -3,6 +3,18 @@ #include +/** + * 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.