From 0b40d09a21eb79896a7e60509a7ff8c69b25b37c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 28 Jul 2020 10:46:46 +0200 Subject: buffer: add wlr_client_buffer_get --- include/wlr/types/wlr_buffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') 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 @@ -103,6 +103,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. */ -- cgit v1.2.3