From 5cd14dfc91dfa581a1c4ad675939f6b227fd44ab Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 9 Dec 2022 17:58:40 +0100 Subject: linux-dmabuf-v1: stop using const in feedback Instead of using const pointers, use structs owned by the tranche. This will allow wlroots to expose helpers to build feedback objects. --- include/wlr/types/wlr_linux_dmabuf_v1.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h index 4ab1a78a..e850ea6b 100644 --- a/include/wlr/types/wlr_linux_dmabuf_v1.h +++ b/include/wlr/types/wlr_linux_dmabuf_v1.h @@ -44,14 +44,13 @@ struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource( struct wlr_linux_dmabuf_feedback_v1 { dev_t main_device; - size_t tranches_len; - const struct wlr_linux_dmabuf_feedback_v1_tranche *tranches; + struct wl_array tranches; // struct wlr_linux_dmabuf_feedback_v1_tranche }; struct wlr_linux_dmabuf_feedback_v1_tranche { dev_t target_device; uint32_t flags; // bitfield of enum zwp_linux_dmabuf_feedback_v1_tranche_flags - const struct wlr_drm_format_set *formats; + struct wlr_drm_format_set formats; }; /* the protocol interface */ -- cgit v1.2.3