aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
Diffstat (limited to 'include/render')
-rw-r--r--include/render/shm_allocator.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/render/shm_allocator.h b/include/render/shm_allocator.h
new file mode 100644
index 00000000..e6cba83b
--- /dev/null
+++ b/include/render/shm_allocator.h
@@ -0,0 +1,23 @@
+#ifndef RENDER_SHM_ALLOCATOR_H
+#define RENDER_SHM_ALLOCATOR_H
+
+#include <wlr/types/wlr_buffer.h>
+#include "render/allocator.h"
+
+struct wlr_shm_buffer {
+ struct wlr_buffer base;
+ struct wlr_shm_attributes shm;
+ void *data;
+ size_t size;
+};
+
+struct wlr_shm_allocator {
+ struct wlr_allocator base;
+};
+
+/**
+ * Creates a new shared memory allocator.
+ */
+struct wlr_shm_allocator *wlr_shm_allocator_create(void);
+
+#endif