From f64ed60c7b6caaea9a4331fb9481b151cd1631bb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 12 Apr 2021 11:03:49 +0200 Subject: linux-dmabuf-v1: drop some from_resource helpers Drop wlr_dmabuf_v1_buffer_from_params_resource and wlr_linux_dmabuf_v1_from_resource. Contrary to wl_buffer, these resources are internal linux-dmabuf-v1 implementation details and should not be shared with other interfaces. --- include/wlr/types/wlr_linux_dmabuf_v1.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h index 64e2bd48..1d1a00eb 100644 --- a/include/wlr/types/wlr_linux_dmabuf_v1.h +++ b/include/wlr/types/wlr_linux_dmabuf_v1.h @@ -34,13 +34,6 @@ bool wlr_dmabuf_v1_resource_is_buffer(struct wl_resource *buffer_resource); struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource( struct wl_resource *buffer_resource); -/** - * Returns the wlr_dmabuf_buffer if the given resource was created - * via the linux-dmabuf params protocol - */ -struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_params_resource( - struct wl_resource *params_resource); - /* the protocol interface */ struct wlr_linux_dmabuf_v1 { struct wl_global *global; @@ -60,11 +53,4 @@ struct wlr_linux_dmabuf_v1 { struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_create(struct wl_display *display, struct wlr_renderer *renderer); -/** - * Returns the wlr_linux_dmabuf if the given resource was created - * via the linux_dmabuf protocol - */ -struct wlr_linux_dmabuf_v1 *wlr_linux_dmabuf_v1_from_resource( - struct wl_resource *resource); - #endif -- cgit v1.2.3