GlobalEvents: expose the internal class

Move the GlobalEvents::Monitor instance into class Instance.
Eliminate all global variables.
This commit is contained in:
Max Kellermann
2016-03-05 20:14:12 +01:00
parent b4d594eeff
commit 0e87ce4680
7 changed files with 38 additions and 58 deletions

View File

@@ -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