diff options
author | eri <eri@inventati.org> | 2023-10-19 17:39:01 +0200 |
---|---|---|
committer | eri <eri@inventati.org> | 2023-10-19 18:19:27 +0200 |
commit | 8ccbe45143eff1705c0516bcdb02376d7d627198 (patch) | |
tree | 8ef830368ac02d082dda62aef530db5974a1ae45 /include | |
parent | 5adf325333602d5b1e7ccdeb122633bbc8040ace (diff) |
buffer: convert to try_from
References: wlroots/wlroots#884
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_buffer.h | 6 |
1 files changed, 1 insertions, 5 deletions
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 |