From 6dbdf5db345c47ac6edf92161cb7b521c8284e39 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 29 Apr 2019 22:32:35 +0300 Subject: render/dmabuf: add wlr_dmabuf_attributes_copy --- include/wlr/render/dmabuf.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/wlr/render') 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 #include #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 -- cgit v1.2.3