Main: move global variables to struct Instance

More preparations for multi-player support.
This commit is contained in:
Max Kellermann
2013-04-17 22:58:33 +02:00
parent 08dfd263ba
commit b2d3d15e97
12 changed files with 149 additions and 38 deletions

View File

@@ -26,19 +26,19 @@
#include "PlaylistGlobal.hxx"
#include "Playlist.hxx"
#include "Main.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "GlobalEvents.hxx"
static void
playlist_tag_event(void)
{
global_partition->playlist.TagChanged();
instance->TagModified();
}
static void
playlist_event(void)
{
global_partition->playlist.SyncWithPlayer(global_partition->pc);
instance->SyncWithPlayer();
}
void