mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
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.
This commit is contained in:
parent
f6008ffff4
commit
5cd14dfc91
2 changed files with 31 additions and 26 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue