player_control: removed the global variable "pc"
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
This commit is contained in:
+3
-1
@@ -22,10 +22,12 @@
|
||||
|
||||
struct client;
|
||||
struct locate_item_list;
|
||||
struct player_control;
|
||||
|
||||
int printAllIn(struct client *client, const char *name);
|
||||
|
||||
int addAllIn(const char *name);
|
||||
int
|
||||
addAllIn(struct player_control *pc, const char *name);
|
||||
|
||||
int addAllInToStoredPlaylist(const char *name, const char *utf8file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user