aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-17 22:58:33 +0200
committerMax Kellermann <max@duempel.org>2013-04-17 23:52:58 +0200
commitb2d3d15e978aef2566a1bdae435d71cb326dec4d (patch)
tree769550ce5e624915b9d3129793624583474604ba /src/Partition.hxx
parent08dfd263ba496b0c1f6ddbe9b3eefa9a5cea57a4 (diff)
downloadmpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.gz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.xz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.zip
Main: move global variables to struct Instance
More preparations for multi-player support.
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r--src/Partition.hxx9
1 files changed, 7 insertions, 2 deletions
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) {
}