You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
421 B
24 lines
421 B
3 years ago
|
#ifndef RENDER_ALLOCATOR_SHM_H
|
||
|
#define RENDER_ALLOCATOR_SHM_H
|
||
4 years ago
|
|
||
|
#include <wlr/types/wlr_buffer.h>
|
||
3 years ago
|
#include "render/allocator/allocator.h"
|
||
4 years ago
|
|
||
|
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.
|
||
|
*/
|
||
4 years ago
|
struct wlr_allocator *wlr_shm_allocator_create(void);
|
||
4 years ago
|
|
||
|
#endif
|