mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-29 18:42:21 +00:00
3ce2ea9e16
Add render/allocator/ and include/render/allocator/ to hold everything allocator-related.
24 lines
421 B
C
24 lines
421 B
C
#ifndef RENDER_ALLOCATOR_SHM_H
|
|
#define RENDER_ALLOCATOR_SHM_H
|
|
|
|
#include <wlr/types/wlr_buffer.h>
|
|
#include "render/allocator/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_allocator *wlr_shm_allocator_create(void);
|
|
|
|
#endif
|