diff options
author | emersion <contact@emersion.fr> | 2018-04-30 22:20:39 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-03 18:45:30 +0100 |
commit | ff4708d4068b220f55f6bb5c3f8afeedcb5f2c3c (patch) | |
tree | ec39e61667e14d295d17f11139c95b870b5fab97 /include | |
parent | 6d569def6d54f4ab1188f80c25260b56e2bc849a (diff) |
linux-dmabuf: correctly destroy resources
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_linux_dmabuf.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf.h b/include/wlr/types/wlr_linux_dmabuf.h index 3fe8e1fc..531e68ab 100644 --- a/include/wlr/types/wlr_linux_dmabuf.h +++ b/include/wlr/types/wlr_linux_dmabuf.h @@ -25,8 +25,7 @@ struct wlr_dmabuf_buffer_attribs { uint64_t modifier[WLR_LINUX_DMABUF_MAX_PLANES]; int fd[WLR_LINUX_DMABUF_MAX_PLANES]; /* set via params_create */ - int32_t width; - int32_t height; + int32_t width, height; uint32_t format; uint32_t flags; }; @@ -61,8 +60,15 @@ struct wlr_dmabuf_buffer *wlr_dmabuf_buffer_from_params_resource( /* the protocol interface */ struct wlr_linux_dmabuf { struct wl_global *wl_global; - struct wl_listener display_destroy; struct wlr_renderer *renderer; + struct wl_list wl_resources; + + struct { + struct wl_signal destroy; + } events; + + struct wl_listener display_destroy; + struct wl_listener renderer_destroy; }; /** |