aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-25 09:33:19 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-08-25 09:57:20 -0400
commit3ce2ea9e16fcd1bfab4ec9d5994fa721c5d58dcd (patch)
tree1bce6445158968c4d73cd73be30c141468dbc84c /include
parentb37731cdbbef4dc52033c2d26b04d2329720fa07 (diff)
Move allocator stuff into new directory
Add render/allocator/ and include/render/allocator/ to hold everything allocator-related.
Diffstat (limited to 'include')
-rw-r--r--include/render/allocator/allocator.h (renamed from include/render/allocator.h)5
-rw-r--r--include/render/allocator/drm_dumb.h (renamed from include/render/drm_dumb_allocator.h)8
-rw-r--r--include/render/allocator/gbm.h (renamed from include/render/gbm_allocator.h)7
-rw-r--r--include/render/allocator/shm.h (renamed from include/render/shm_allocator.h)6
4 files changed, 13 insertions, 13 deletions
diff --git a/include/render/allocator.h b/include/render/allocator/allocator.h
index c33ab126..d67116cd 100644
--- a/include/render/allocator.h
+++ b/include/render/allocator/allocator.h
@@ -1,9 +1,8 @@
-#ifndef RENDER_ALLOCATOR
-#define RENDER_ALLOCATOR
+#ifndef RENDER_ALLOCATOR_ALLOCATOR_H
+#define RENDER_ALLOCATOR_ALLOCATOR_H
#include <stdbool.h>
#include <wayland-server-core.h>
-#include <wlr/render/dmabuf.h>
#include <wlr/render/drm_format_set.h>
struct wlr_allocator;
diff --git a/include/render/drm_dumb_allocator.h b/include/render/allocator/drm_dumb.h
index ff10d54b..7e37acfb 100644
--- a/include/render/drm_dumb_allocator.h
+++ b/include/render/allocator/drm_dumb.h
@@ -1,9 +1,9 @@
-#ifndef RENDER_DRM_DUMB_ALLOCATOR_H
-#define RENDER_DRM_DUMB_ALLOCATOR_H
-
-#include "render/allocator.h"
+#ifndef RENDER_ALLOCATOR_DRM_DUMB_H
+#define RENDER_ALLOCATOR_DRM_DUMB_H
+#include <wlr/render/dmabuf.h>
#include <wlr/types/wlr_buffer.h>
+#include "render/allocator/allocator.h"
struct wlr_drm_dumb_buffer {
struct wlr_buffer base;
diff --git a/include/render/gbm_allocator.h b/include/render/allocator/gbm.h
index df6b5e39..eb112e7c 100644
--- a/include/render/gbm_allocator.h
+++ b/include/render/allocator/gbm.h
@@ -1,9 +1,10 @@
-#ifndef RENDER_GBM_ALLOCATOR_H
-#define RENDER_GBM_ALLOCATOR_H
+#ifndef RENDER_ALLOCATOR_GBM_H
+#define RENDER_ALLOCATOR_GBM_H
#include <gbm.h>
+#include <wlr/render/dmabuf.h>
#include <wlr/types/wlr_buffer.h>
-#include "render/allocator.h"
+#include "render/allocator/allocator.h"
struct wlr_gbm_buffer {
struct wlr_buffer base;
diff --git a/include/render/shm_allocator.h b/include/render/allocator/shm.h
index d1f48f7f..4b80e475 100644
--- a/include/render/shm_allocator.h
+++ b/include/render/allocator/shm.h
@@ -1,8 +1,8 @@
-#ifndef RENDER_SHM_ALLOCATOR_H
-#define RENDER_SHM_ALLOCATOR_H
+#ifndef RENDER_ALLOCATOR_SHM_H
+#define RENDER_ALLOCATOR_SHM_H
#include <wlr/types/wlr_buffer.h>
-#include "render/allocator.h"
+#include "render/allocator/allocator.h"
struct wlr_shm_buffer {
struct wlr_buffer base;