From 8ccbe45143eff1705c0516bcdb02376d7d627198 Mon Sep 17 00:00:00 2001 From: eri Date: Thu, 19 Oct 2023 17:39:01 +0200 Subject: buffer: convert to try_from References: wlroots/wlroots#884 --- include/wlr/types/wlr_buffer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 7c362922..de3aeec3 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -103,7 +103,7 @@ bool wlr_buffer_get_shm(struct wlr_buffer *buffer, * * The provided struct wl_resource must be a wl_buffer. */ -struct wlr_buffer *wlr_buffer_from_resource(struct wl_resource *resource); +struct wlr_buffer *wlr_buffer_try_from_resource(struct wl_resource *resource); /** * Buffer data pointer access flags. @@ -160,9 +160,5 @@ struct wlr_client_buffer { * 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); #endif -- cgit v1.2.3