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.
This commit is contained in:
Simon Ser 2022-09-16 18:32:22 +02:00
parent 4ffc97d134
commit 69c47717c2
9 changed files with 594 additions and 566 deletions

View file

@ -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.
*