linux-dmabuf-v1: add version arg to create()

To be able to add support for newer versions without breaking
changes.
This commit is contained in:
Simon Ser 2022-11-24 10:07:19 +01:00
parent 444d94ef89
commit c99c60090c
3 changed files with 7 additions and 6 deletions

View file

@ -77,7 +77,7 @@ struct wlr_linux_dmabuf_v1 {
* The default DMA-BUF feedback is initialized from the struct wlr_renderer.
*/
struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create_with_renderer(struct wl_display *display,
struct wlr_renderer *renderer);
uint32_t version, struct wlr_renderer *renderer);
/**
* Set a surface's DMA-BUF feedback.