aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/allocator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/render/allocator.h b/include/render/allocator.h
index d47184af..4d8e68f4 100644
--- a/include/render/allocator.h
+++ b/include/render/allocator.h
@@ -7,6 +7,8 @@
#include <wlr/render/drm_format_set.h>
struct wlr_allocator;
+struct wlr_backend;
+struct wlr_renderer;
struct wlr_allocator_interface {
struct wlr_buffer *(*create_buffer)(struct wlr_allocator *alloc,
@@ -23,6 +25,11 @@ struct wlr_allocator {
};
/**
+ * Creates the adequate wlr_allocator given a backend and a renderer
+ */
+struct wlr_allocator *wlr_allocator_autocreate(struct wlr_backend *backend,
+ struct wlr_renderer *renderer);
+/**
* Destroy the allocator.
*/
void wlr_allocator_destroy(struct wlr_allocator *alloc);