From bb82b6dadaea244356d54c33cc3f0e8a620cd833 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 11 Aug 2021 17:22:11 +0200 Subject: buffer: make wlr_client_buffer_apply_damage return a bool We always return the same wlr_client_buffer as the one passed in, so no need to return anything. --- include/wlr/types/wlr_buffer.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 4d9640d8..c714ddb6 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -178,15 +178,12 @@ struct wlr_client_buffer *wlr_client_buffer_get(struct wlr_buffer *buffer); */ bool wlr_resource_is_buffer(struct wl_resource *resource); /** - * Try to update the buffer's content. On success, returns the updated buffer - * and destroys the provided `buffer`. On error, `buffer` is intact and NULL is - * returned. + * Try to update the buffer's content. * * Fails if there's more than one reference to the buffer or if the texture * isn't mutable. */ -struct wlr_client_buffer *wlr_client_buffer_apply_damage( - struct wlr_client_buffer *buffer, struct wlr_buffer *next, - pixman_region32_t *damage); +bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer, + struct wlr_buffer *next, pixman_region32_t *damage); #endif -- cgit v1.2.3