mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
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.
This commit is contained in:
parent
d70d74ad4f
commit
3d73b899ff
2 changed files with 11 additions and 7 deletions
|
@ -20,6 +20,8 @@ struct wlr_dmabuf_v1_buffer {
|
||||||
struct wl_resource *resource; // can be NULL if the client destroyed it
|
struct wl_resource *resource; // can be NULL if the client destroyed it
|
||||||
struct wlr_dmabuf_attributes attributes;
|
struct wlr_dmabuf_attributes attributes;
|
||||||
|
|
||||||
|
// private state
|
||||||
|
|
||||||
struct wl_listener release;
|
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 wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource(
|
||||||
struct wl_resource *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 */
|
/* the protocol interface */
|
||||||
struct wlr_linux_dmabuf_v1 {
|
struct wlr_linux_dmabuf_v1 {
|
||||||
struct wl_global *global;
|
struct wl_global *global;
|
||||||
|
@ -52,6 +47,8 @@ struct wlr_linux_dmabuf_v1 {
|
||||||
struct wl_signal destroy;
|
struct wl_signal destroy;
|
||||||
} events;
|
} events;
|
||||||
|
|
||||||
|
// private state
|
||||||
|
|
||||||
struct wl_listener display_destroy;
|
struct wl_listener display_destroy;
|
||||||
struct wl_listener renderer_destroy;
|
struct wl_listener renderer_destroy;
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,6 +13,13 @@
|
||||||
|
|
||||||
#define LINUX_DMABUF_VERSION 3
|
#define LINUX_DMABUF_VERSION 3
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
static void buffer_handle_destroy(struct wl_client *client,
|
static void buffer_handle_destroy(struct wl_client *client,
|
||||||
struct wl_resource *resource) {
|
struct wl_resource *resource) {
|
||||||
wl_resource_destroy(resource);
|
wl_resource_destroy(resource);
|
||||||
|
|
Loading…
Reference in a new issue