aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-06-09 11:21:09 +0200
committerDrew DeVault <sir@cmpwn.com>2020-06-09 07:12:43 -0600
commita8a4a12c4beb5d61f27f73595b0e5d0ed37c297c (patch)
tree2778a7b90d1f1ce2776207a93c1639c9dbc58685 /include/wlr
parent78d6eed6b312924cdd96339743065aee634de17d (diff)
buffer: document wlr_buffer_get_dmabuf DMA-BUF lifetime
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h
index 454c5ba0..14bb2a8d 100644
--- a/include/wlr/types/wlr_buffer.h
+++ b/include/wlr/types/wlr_buffer.h
@@ -69,6 +69,10 @@ void wlr_buffer_unlock(struct wlr_buffer *buffer);
/**
* Reads the DMA-BUF attributes of the buffer. If this buffer isn't a DMA-BUF,
* returns false.
+ *
+ * The returned DMA-BUF attributes are valid for the lifetime of the
+ * wlr_buffer. The caller isn't responsible for cleaning up the DMA-BUF
+ * attributes.
*/
bool wlr_buffer_get_dmabuf(struct wlr_buffer *buffer,
struct wlr_dmabuf_attributes *attribs);