diff options
author | Simon Ser <contact@emersion.fr> | 2021-11-22 10:32:55 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-22 10:32:55 +0100 |
commit | 3d73b899ffdb6cdb45f69acfa5d7a914943dc592 (patch) | |
tree | 5089c19add79b7e4c9021d59b6d4c738dde4b973 /include/wlr | |
parent | d70d74ad4f3069687ed7f98f9cbbe9f6551e05c6 (diff) |
linux-dmabuf-v1: hide wlr_linux_buffer_params_v1
The parameters are used when the client is in the process of
building a buffer. There's no reason why this internal
implementation detail should be exposed in our public header.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_linux_dmabuf_v1.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h index a2db7fea..b4eb8675 100644 --- a/include/wlr/types/wlr_linux_dmabuf_v1.h +++ b/include/wlr/types/wlr_linux_dmabuf_v1.h @@ -20,6 +20,8 @@ struct wlr_dmabuf_v1_buffer { struct wl_resource *resource; // can be NULL if the client destroyed it struct wlr_dmabuf_attributes attributes; + // private state + struct wl_listener release; }; @@ -36,13 +38,6 @@ bool wlr_dmabuf_v1_resource_is_buffer(struct wl_resource *buffer_resource); struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource( struct wl_resource *buffer_resource); -struct wlr_linux_buffer_params_v1 { - struct wl_resource *resource; - struct wlr_linux_dmabuf_v1 *linux_dmabuf; - struct wlr_dmabuf_attributes attributes; - bool has_modifier; -}; - /* the protocol interface */ struct wlr_linux_dmabuf_v1 { struct wl_global *global; @@ -52,6 +47,8 @@ struct wlr_linux_dmabuf_v1 { struct wl_signal destroy; } events; + // private state + struct wl_listener display_destroy; struct wl_listener renderer_destroy; }; |