blob: e6cba83b13d64c2523a006891aaad153e07387d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|