aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-23 23:27:15 +0100
committeremersion <contact@emersion.fr>2018-05-29 18:47:18 +0100
commit00e108f2fcd0c41d361a45149ad6a310a0a4b85d (patch)
tree052e1c1c082ac8f7dfcff9b29fa5a673b7321493 /include
parent1377e551ef583976142bfb98a1ba5b61f1cc1196 (diff)
export-dmabuf: correctly finish wlr_linux_dmabuf_attribs
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_export_dmabuf_v1.h2
-rw-r--r--include/wlr/types/wlr_linux_dmabuf.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_export_dmabuf_v1.h b/include/wlr/types/wlr_export_dmabuf_v1.h
index 4cb3393f..218b1635 100644
--- a/include/wlr/types/wlr_export_dmabuf_v1.h
+++ b/include/wlr/types/wlr_export_dmabuf_v1.h
@@ -2,6 +2,7 @@
#define WLR_TYPES_WLR_EXPORT_DMABUF_V1_H
#include <wayland-server.h>
+#include <wlr/types/wlr_linux_dmabuf.h>
struct wlr_export_dmabuf_manager_v1;
@@ -10,6 +11,7 @@ struct wlr_export_dmabuf_frame_v1 {
struct wlr_export_dmabuf_manager_v1 *manager;
struct wl_list link;
+ struct wlr_dmabuf_buffer_attribs attribs;
struct wlr_output *output;
struct wl_listener output_swap_buffers;
diff --git a/include/wlr/types/wlr_linux_dmabuf.h b/include/wlr/types/wlr_linux_dmabuf.h
index 531e68ab..1677398b 100644
--- a/include/wlr/types/wlr_linux_dmabuf.h
+++ b/include/wlr/types/wlr_linux_dmabuf.h
@@ -38,6 +38,12 @@ struct wlr_dmabuf_buffer {
};
/**
+ * Closes all file descriptors in the DMA-BUF attributes.
+ */
+void wlr_dmabuf_buffer_attribs_finish(
+ struct wlr_dmabuf_buffer_attribs *attribs);
+
+/**
* Returns true if the given resource was created via the linux-dmabuf
* buffer protocol, false otherwise
*/