diff options
author | Chris Robinson <[email protected]> | 2023-05-01 19:19:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-01 19:19:41 -0700 |
commit | d5e5b211b89de63667eab71faa7e9a13a0b7992d (patch) | |
tree | 54ef0594421d46b3c122145aaeaa44a1fb216014 | |
parent | e1b573284b649c6fef42ab5b6ca51978c4a1329a (diff) |
Define a struct where it's needed
-rw-r--r-- | al/debug.h | 18 | ||||
-rw-r--r-- | alc/context.h | 19 |
2 files changed, 18 insertions, 19 deletions
@@ -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 */ |