diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/backend.h | 6 | ||||
-rw-r--r-- | include/wlr/backend.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/backend/backend.h b/include/backend/backend.h index 8c7440c3..7d88cd79 100644 --- a/include/backend/backend.h +++ b/include/backend/backend.h @@ -10,4 +10,10 @@ */ uint32_t backend_get_buffer_caps(struct wlr_backend *backend); +/** + * Get the backend's allocator. Automatically creates the allocator if + * necessary. + */ +struct wlr_allocator *backend_get_allocator(struct wlr_backend *backend); + #endif diff --git a/include/wlr/backend.h b/include/wlr/backend.h index 020be18d..025f74bd 100644 --- a/include/wlr/backend.h +++ b/include/wlr/backend.h @@ -29,6 +29,7 @@ struct wlr_backend { // Private state struct wlr_renderer *renderer; + struct wlr_allocator *allocator; }; /** |