aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2023-10-19 18:17:33 +0200
committereri <eri@inventati.org>2023-10-19 18:19:42 +0200
commitbfc42e0f622f242ad057bd36e1946418ed3d842c (patch)
tree886aa52780654353157a409f160d41da0ec6ef5d /include
parentc46d3da97685fb5314948f9467d3627671e83738 (diff)
linux_dmabuf_v1: convert to try_from
References: wlroots/wlroots#884
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h10
1 files changed, 2 insertions, 8 deletions
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
@@ -30,16 +30,10 @@ struct wlr_dmabuf_v1_buffer {
};
/**
- * 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 {