Client: add "playlist" attribute

Reduce access to the global variable "g_playlist".
This commit is contained in:
Max Kellermann
2013-01-04 23:07:11 +01:00
parent b0833084a6
commit fe8e77e556
7 changed files with 84 additions and 64 deletions

View File

@@ -46,6 +46,7 @@ struct deferred_buffer {
class Client {
public:
struct playlist &playlist;
struct player_control *player_control;
GIOChannel *channel;
@@ -99,7 +100,8 @@ public:
*/
std::list<ClientMessage> messages;
Client(struct player_control *player_control,
Client(struct playlist &playlist,
struct player_control *player_control,
int fd, int uid, int num);
~Client();