diff options
author | Simon Ser <contact@emersion.fr> | 2019-04-29 22:32:35 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-07 09:06:11 -0400 |
commit | 6dbdf5db345c47ac6edf92161cb7b521c8284e39 (patch) | |
tree | 0188bfbc3eb26f9dcb65b6f15f2417950faff0f1 /include | |
parent | 5c78f1b0d5d6572dd9035e2d43e2a7bddd466a58 (diff) |
render/dmabuf: add wlr_dmabuf_attributes_copy
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/render/dmabuf.h | 6 |
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 |