diff options
author | Simon Ser <contact@emersion.fr> | 2020-07-28 10:46:46 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-15 22:48:42 +0100 |
commit | 0b40d09a21eb79896a7e60509a7ff8c69b25b37c (patch) | |
tree | e7a55d5253718146bf1f7baac6f8479a7eab3b59 /include/wlr | |
parent | b0a663d39d2de1dcfd9a0381cc822c4713da508e (diff) |
buffer: add wlr_client_buffer_get
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_buffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 14bb2a8d..84555899 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -104,6 +104,11 @@ struct wlr_client_buffer { struct wlr_renderer; /** + * Get a client buffer from a generic buffer. If the buffer isn't a client + * buffer, returns NULL. + */ +struct wlr_client_buffer *wlr_client_buffer_get(struct wlr_buffer *buffer); +/** * Check if a resource is a wl_buffer resource. */ bool wlr_resource_is_buffer(struct wl_resource *resource); |