aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/dmabuf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h
index 1d61da4e..93e50eb3 100644
--- a/include/wlr/render/dmabuf.h
+++ b/include/wlr/render/dmabuf.h
@@ -9,6 +9,7 @@
#ifndef WLR_RENDER_DMABUF_H
#define WLR_RENDER_DMABUF_H
+#include <stdbool.h>
#include <stdint.h>
#define WLR_DMABUF_MAX_PLANES 4
@@ -35,5 +36,10 @@ struct wlr_dmabuf_attributes {
* Closes all file descriptors in the DMA-BUF attributes.
*/
void wlr_dmabuf_attributes_finish(struct wlr_dmabuf_attributes *attribs);
+/**
+ * Clones the DMA-BUF attributes.
+ */
+bool wlr_dmabuf_attributes_copy(struct wlr_dmabuf_attributes *dst,
+ struct wlr_dmabuf_attributes *src);
#endif