Main: move global variables to struct Instance
More preparations for multi-player support.
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user