[PATCH weston] compositor: export weston_buffer_from_resource()

Giulio Camuffo giuliocamuffo at gmail.com
Thu Dec 12 05:14:29 PST 2013


This is needed to allow shell plugins to implement their own
screenshooter.
---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 66ed7de..edc6df0 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1354,7 +1354,7 @@ weston_buffer_destroy_handler(struct wl_listener *listener, void *data)
 	free(buffer);
 }
 
-struct weston_buffer *
+WL_EXPORT struct weston_buffer *
 weston_buffer_from_resource(struct wl_resource *resource)
 {
 	struct weston_buffer *buffer;
-- 
1.8.5.1



More information about the wayland-devel mailing list