mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Move allocator stuff into new directory
Add render/allocator/ and include/render/allocator/ to hold everything allocator-related.
This commit is contained in:
parent
b37731cdbb
commit
3ce2ea9e16
17 changed files with 35 additions and 34 deletions
23
include/render/allocator/shm.h
Normal file
23
include/render/allocator/shm.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue