aboutsummaryrefslogtreecommitdiffstats
path: root/core/async_event.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-10-10 05:07:31 -0700
committerChris Robinson <[email protected]>2021-10-10 05:07:31 -0700
commit92b65fa15fa8d7ca064ef6178fc749b6a465ad5b (patch)
tree54d422102fdd8ef5ec0b6d7a39f778744f70b3c0 /core/async_event.h
parent87e88e97e2627bc14e8d001a8c6b272f43b1b654 (diff)
Avoid manually prefixing EventType_ enums
And use a better fitting type that matches how it's used
Diffstat (limited to 'core/async_event.h')
-rw-r--r--core/async_event.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/async_event.h b/core/async_event.h
index 054f0563..750f38c9 100644
--- a/core/async_event.h
+++ b/core/async_event.h
@@ -8,20 +8,20 @@ struct EffectState;
using uint = unsigned int;
-enum {
- /* End event thread processing. */
- EventType_KillThread = 0,
+struct AsyncEvent {
+ enum : uint {
+ /* End event thread processing. */
+ KillThread = 0,
- /* User event types. */
- EventType_SourceStateChange = 1<<0,
- EventType_BufferCompleted = 1<<1,
- EventType_Disconnected = 1<<2,
+ /* User event types. */
+ SourceStateChange = 1<<0,
+ BufferCompleted = 1<<1,
+ Disconnected = 1<<2,
- /* Internal events. */
- EventType_ReleaseEffectState = 65536,
-};
+ /* Internal events. */
+ ReleaseEffectState = 65536,
+ };
-struct AsyncEvent {
enum class SrcState {
Reset,
Stop,