From bfc42e0f622f242ad057bd36e1946418ed3d842c Mon Sep 17 00:00:00 2001 From: eri Date: Thu, 19 Oct 2023 18:17:33 +0200 Subject: linux_dmabuf_v1: convert to try_from References: wlroots/wlroots#884 --- include/wlr/types/wlr_linux_dmabuf_v1.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h index 3f703705..bfc39a85 100644 --- a/include/wlr/types/wlr_linux_dmabuf_v1.h +++ b/include/wlr/types/wlr_linux_dmabuf_v1.h @@ -29,17 +29,11 @@ struct wlr_dmabuf_v1_buffer { struct wl_listener release; }; -/** - * Returns true if the given resource was created via the linux-dmabuf - * buffer protocol, false otherwise - */ -bool wlr_dmabuf_v1_resource_is_buffer(struct wl_resource *buffer_resource); - /** * Returns the struct wlr_dmabuf_buffer if the given resource was created - * via the linux-dmabuf buffer protocol. + * via the linux-dmabuf buffer protocol or NULL otherwise. */ -struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource( +struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_try_from_buffer_resource( struct wl_resource *buffer_resource); struct wlr_linux_dmabuf_feedback_v1 { -- cgit v1.2.3