From 69c47717c2e0dfcc3a46f9c5d105f2fea0904d44 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 16 Sep 2022 18:32:22 +0200 Subject: buffer: split into multiple files wlr_buffer.c is difficult to read because it contains a mixed bag of unrelated things: base buffer type, buffer implementations, buffer resource factory, and client buffer. Split each of these into their own file. --- include/types/wlr_buffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/types/wlr_buffer.h b/include/types/wlr_buffer.h index e7097ae2..59d78e9c 100644 --- a/include/types/wlr_buffer.h +++ b/include/types/wlr_buffer.h @@ -22,6 +22,9 @@ struct wlr_shm_client_buffer { struct wl_listener release; }; +struct wlr_shm_client_buffer *shm_client_buffer_get_or_create( + struct wl_resource *resource); + /** * A read-only buffer that holds a data pointer. * -- cgit v1.2.3