From 493804e4215ee23101305e0bf5598bb6f21fb663 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 29 Apr 2019 22:33:46 +0300 Subject: buffer: add wlr_buffer_get_dmabuf --- include/wlr/types/wlr_buffer.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 0c987b17..11b36596 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -11,6 +11,7 @@ #include #include +#include /** * A client buffer. @@ -67,5 +68,11 @@ void wlr_buffer_unref(struct wlr_buffer *buffer); */ struct wlr_buffer *wlr_buffer_apply_damage(struct wlr_buffer *buffer, struct wl_resource *resource, pixman_region32_t *damage); +/** + * Reads the DMA-BUF attributes of the buffer. If this buffer isn't a DMA-BUF, + * returns false. + */ +bool wlr_buffer_get_dmabuf(struct wlr_buffer *buffer, + struct wlr_dmabuf_attributes *attribs); #endif -- cgit v1.2.3