From b2d3d15e978aef2566a1bdae435d71cb326dec4d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Apr 2013 22:58:33 +0200 Subject: Main: move global variables to struct Instance More preparations for multi-player support. --- src/Partition.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Partition.hxx') diff --git a/src/Partition.hxx b/src/Partition.hxx index 776f74e2a..6e4230857 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -23,19 +23,24 @@ #include "Playlist.hxx" #include "PlayerControl.hxx" +struct Instance; + /** * A partition of the Music Player Daemon. It is a separate unit with * a playlist, a player, outputs etc. */ struct Partition { + Instance &instance; + struct playlist playlist; player_control pc; - Partition(unsigned max_length, + Partition(Instance &_instance, + unsigned max_length, unsigned buffer_chunks, unsigned buffered_before_play) - :playlist(max_length), + :instance(_instance), playlist(max_length), pc(buffer_chunks, buffered_before_play) { } -- cgit v1.2.3