diff options
author | Max Kellermann <max@duempel.org> | 2016-03-05 20:14:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-05 20:23:30 +0100 |
commit | 0e87ce4680df5cc66225b7a20f1c09938ae885cd (patch) | |
tree | 26cf71b27ac26dccdf862bc10e86a26a77c65c9d /src/Partition.cxx | |
parent | b4d594eeff22d112d224341b40db2893589a63df (diff) |
GlobalEvents: expose the internal class
Move the GlobalEvents::Monitor instance into class Instance.
Eliminate all global variables.
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r-- | src/Partition.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx index f0cfe11cd..115ffde0a 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -67,13 +67,13 @@ Partition::SyncWithPlayer() void Partition::OnPlayerSync() { - GlobalEvents::Emit(GlobalEvents::PLAYLIST); + instance.global_events.Emit(GlobalEvents::PLAYLIST); } void Partition::OnPlayerTagModified() { - GlobalEvents::Emit(GlobalEvents::TAG); + instance.global_events.Emit(GlobalEvents::TAG); } void |