aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-09 17:58:40 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-02-06 19:14:15 +0000
commit5cd14dfc91dfa581a1c4ad675939f6b227fd44ab (patch)
tree6de60015c118e3c60323fff56cb0cd5f8964d5a7 /include/wlr
parentf6008ffff41f67e3c20bd8b3be8f216da6a4bb30 (diff)
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.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h5
1 files changed, 2 insertions, 3 deletions
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 */