aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-01 19:19:41 -0700
committerChris Robinson <[email protected]>2023-05-01 19:19:41 -0700
commitd5e5b211b89de63667eab71faa7e9a13a0b7992d (patch)
tree54ef0594421d46b3c122145aaeaa44a1fb216014
parente1b573284b649c6fef42ab5b6ca51978c4a1329a (diff)
Define a struct where it's needed
-rw-r--r--al/debug.h18
-rw-r--r--alc/context.h19
2 files changed, 18 insertions, 19 deletions
diff --git a/al/debug.h b/al/debug.h
index 8f83fd5e..87bc10f6 100644
--- a/al/debug.h
+++ b/al/debug.h
@@ -64,22 +64,4 @@ struct DebugGroup {
DebugGroup(DebugGroup&&) = default;
};
-
-struct DebugLogEntry {
- const DebugSource mSource;
- const DebugType mType;
- const DebugSeverity mSeverity;
- const uint mId;
-
- std::string mMessage;
-
- template<typename T>
- DebugLogEntry(DebugSource source, DebugType type, uint id, DebugSeverity severity, T&& message)
- : mSource{source}, mType{type}, mSeverity{severity}, mId{id}
- , mMessage{std::forward<T>(message)}
- { }
- DebugLogEntry(const DebugLogEntry&) = default;
- DebugLogEntry(DebugLogEntry&&) = default;
-};
-
#endif /* AL_DEBUG_H */
diff --git a/alc/context.h b/alc/context.h
index 8757b041..20c89a31 100644
--- a/alc/context.h
+++ b/alc/context.h
@@ -34,7 +34,6 @@ struct ALeffect;
struct ALeffectslot;
struct ALsource;
struct DebugGroup;
-struct DebugLogEntry;
enum class DebugSource : uint8_t;
enum class DebugType : uint8_t;
@@ -43,6 +42,24 @@ enum class DebugSeverity : uint8_t;
using uint = unsigned int;
+struct DebugLogEntry {
+ const DebugSource mSource;
+ const DebugType mType;
+ const DebugSeverity mSeverity;
+ const uint mId;
+
+ std::string mMessage;
+
+ template<typename T>
+ DebugLogEntry(DebugSource source, DebugType type, uint id, DebugSeverity severity, T&& message)
+ : mSource{source}, mType{type}, mSeverity{severity}, mId{id}
+ , mMessage{std::forward<T>(message)}
+ { }
+ DebugLogEntry(const DebugLogEntry&) = default;
+ DebugLogEntry(DebugLogEntry&&) = default;
+};
+
+
struct SourceSubList {
uint64_t FreeMask{~0_u64};
ALsource *Sources{nullptr}; /* 64 */