summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPancakeTAS <pancake@mgnet.work>2026-06-25 11:19:54 +0200
committerPancakeTAS <pancake@mgnet.work>2026-06-25 11:19:54 +0200
commitab752cafbde3755e7a09b3ecae021a6727cb7112 (patch)
treef7718df132f7683976c64974113d3148b43c46c5 /include
parentBug fixes all across the project (diff)
Project hierarchy overhaul
Diffstat (limited to 'include')
-rw-r--r--include/drm++/drm.hpp3
-rw-r--r--include/drm++/gem.hpp3
-rw-r--r--include/drm++/helper/ioctl.hpp (renamed from include/drm++/ioctl.hpp)3
-rw-r--r--include/drm++/helper/macros.hpp (renamed from include/drm++/helper.hpp)20
-rw-r--r--include/drm++/helper/types.hpp22
-rw-r--r--include/drm++/syncobject.hpp3
6 files changed, 30 insertions, 24 deletions
diff --git a/include/drm++/drm.hpp b/include/drm++/drm.hpp
index c75495b..2833adf 100644
--- a/include/drm++/drm.hpp
+++ b/include/drm++/drm.hpp
@@ -130,7 +130,8 @@
/// This library requires a C++ compiler capable of C++20 or newer.
///
-#include "drm++/helper.hpp"
+#include "helper/macros.hpp"
+#include "helper/types.hpp"
namespace drm {
diff --git a/include/drm++/gem.hpp b/include/drm++/gem.hpp
index 35829ee..e3e3306 100644
--- a/include/drm++/gem.hpp
+++ b/include/drm++/gem.hpp
@@ -68,7 +68,8 @@
/// This table is not exhaustive, but it is not recommended to use any other values for bpp.
///
-#include "drm++/helper.hpp"
+#include "helper/macros.hpp"
+#include "helper/types.hpp"
#include <unordered_map>
diff --git a/include/drm++/ioctl.hpp b/include/drm++/helper/ioctl.hpp
index 49f8a1c..fe87f3c 100644
--- a/include/drm++/ioctl.hpp
+++ b/include/drm++/helper/ioctl.hpp
@@ -2,7 +2,8 @@
#pragma once
-#include "drm++/helper.hpp"
+#include "macros.hpp"
+#include "types.hpp"
#include <exception>
#include <string>
diff --git a/include/drm++/helper.hpp b/include/drm++/helper/macros.hpp
index 7b927bf..3187177 100644
--- a/include/drm++/helper.hpp
+++ b/include/drm++/helper/macros.hpp
@@ -2,26 +2,6 @@
#pragma once
-#include <cstdint>
-#include <functional>
-
-namespace drm {
-
-using u8 = uint8_t;
-using u16 = uint16_t;
-using u32 = uint32_t;
-using u64 = uint64_t;
-using s8 = int8_t;
-using s16 = int16_t;
-using s32 = int32_t;
-using s64 = int64_t;
-
-template<typename T>
-using ref = std::reference_wrapper<T>;
-
-}
-
-/* Helpful macros */
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-macros"
diff --git a/include/drm++/helper/types.hpp b/include/drm++/helper/types.hpp
new file mode 100644
index 0000000..0669700
--- /dev/null
+++ b/include/drm++/helper/types.hpp
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: MIT */
+
+#pragma once
+
+#include <cstdint>
+#include <functional>
+
+namespace drm {
+
+using u8 = uint8_t;
+using u16 = uint16_t;
+using u32 = uint32_t;
+using u64 = uint64_t;
+using s8 = int8_t;
+using s16 = int16_t;
+using s32 = int32_t;
+using s64 = int64_t;
+
+template<typename T>
+using ref = std::reference_wrapper<T>;
+
+}
diff --git a/include/drm++/syncobject.hpp b/include/drm++/syncobject.hpp
index beee332..b5a032d 100644
--- a/include/drm++/syncobject.hpp
+++ b/include/drm++/syncobject.hpp
@@ -37,7 +37,8 @@
/// this by providing separate classes for each type of sync object.
///
-#include "drm++/helper.hpp"
+#include "helper/macros.hpp"
+#include "helper/types.hpp"
#include <optional>
#include <vector>