From b6995ca0113611613d311250eabfc354658d46a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Nov 2009 21:08:48 +0100 Subject: 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. --- src/state_file.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/state_file.h') diff --git a/src/state_file.h b/src/state_file.h index ec01fcbed..38d3f74ed 100644 --- a/src/state_file.h +++ b/src/state_file.h @@ -20,11 +20,13 @@ #ifndef MPD_STATE_FILE_H #define MPD_STATE_FILE_H +struct player_control; + void -state_file_init(const char *path); +state_file_init(const char *path, struct player_control *pc); void -state_file_finish(void); +state_file_finish(struct player_control *pc); void write_state_file(void); -- cgit v1.2.3