aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2023-05-01 19:19:41 -0700
committerChris Robinson <chris.kcat@gmail.com>2023-05-01 19:19:41 -0700
commitd5e5b211b89de63667eab71faa7e9a13a0b7992d (patch)
tree54ef0594421d46b3c122145aaeaa44a1fb216014 /alc/context.h
parente1b573284b649c6fef42ab5b6ca51978c4a1329a (diff)
Define a struct where it's needed
Diffstat (limited to 'alc/context.h')
-rw-r--r--alc/context.h19
1 files changed, 18 insertions, 1 deletions
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 */