aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-16 18:32:22 +0200
committerSimon Ser <contact@emersion.fr>2022-09-16 18:32:22 +0200
commit69c47717c2e0dfcc3a46f9c5d105f2fea0904d44 (patch)
tree108544b38cfd7165074514659a51e490142ed678 /include
parent4ffc97d134e4a8090298c79339665bed92334f82 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_buffer.h3
1 files changed, 3 insertions, 0 deletions
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.
*