summaryrefslogtreecommitdiff
path: root/src/Partition.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-05 20:14:12 +0100
committerMax Kellermann <max@duempel.org>2016-03-05 20:23:30 +0100
commit0e87ce4680df5cc66225b7a20f1c09938ae885cd (patch)
tree26cf71b27ac26dccdf862bc10e86a26a77c65c9d /src/Partition.cxx
parentb4d594eeff22d112d224341b40db2893589a63df (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.cxx4
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