aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:41:05 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:41:05 +0200
commit4255bba0f7cbd4a1ac24859a65f8d974d1fb5a9b (patch)
treeb772aada976c129bd87759300e476b2d69ec2bf2 /src/player.h
parenta94845ee00d3107af7ffbe89bf1ec46380ae24ff (diff)
downloadmpd-4255bba0f7cbd4a1ac24859a65f8d974d1fb5a9b.tar.gz
mpd-4255bba0f7cbd4a1ac24859a65f8d974d1fb5a9b.tar.xz
mpd-4255bba0f7cbd4a1ac24859a65f8d974d1fb5a9b.zip
moved global variable "pc" to player.h
This is the last of the three variables. Now we don't need playerData.h anymore in most sources.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h
index a4db82dc2..a030c02da 100644
--- a/src/player.h
+++ b/src/player.h
@@ -79,7 +79,7 @@ enum player_queue_state {
#define PLAYER_QUEUE_UNLOCKED 0
#define PLAYER_QUEUE_LOCKED 1
-typedef struct _PlayerControl {
+struct player_control {
Notify notify;
volatile enum player_command command;
volatile enum player_state state;
@@ -99,7 +99,9 @@ typedef struct _PlayerControl {
volatile float crossFade;
volatile mpd_uint16 softwareVolume;
volatile double totalPlayTime;
-} PlayerControl;
+};
+
+extern struct player_control pc;
void player_command_finished(void);