aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
committerMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
commitba161ec572b98d3bcf9f735ff122133319fe896a (patch)
treea211690e3a8b7fce1fb6db540228122bead1f2bc /src/PlayerControl.hxx
parent43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff)
downloadmpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip
song: convert header to C++
Diffstat (limited to '')
-rw-r--r--src/PlayerControl.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/PlayerControl.hxx b/src/PlayerControl.hxx
index de05e17ab..ab87f6092 100644
--- a/src/PlayerControl.hxx
+++ b/src/PlayerControl.hxx
@@ -29,6 +29,7 @@
#include <stdint.h>
struct decoder_control;
+struct Song;
enum player_state {
PLAYER_STATE_STOP = 0,
@@ -139,7 +140,7 @@ struct player_control {
* This is a duplicate, and must be freed when this attribute
* is cleared.
*/
- struct song *next_song;
+ Song *next_song;
double seek_where;
float cross_fade_seconds;
@@ -230,7 +231,7 @@ struct player_control {
* @param song the song to be queued; the given instance will
* be owned and freed by the player
*/
- void Play(struct song *song);
+ void Play(Song *song);
/**
* see PLAYER_COMMAND_CANCEL
@@ -287,7 +288,7 @@ struct player_control {
* @param song the song to be queued; the given instance will be owned
* and freed by the player
*/
- void EnqueueSong(struct song *song);
+ void EnqueueSong(Song *song);
/**
* Makes the player thread seek the specified song to a position.
@@ -297,7 +298,7 @@ struct player_control {
* @return true on success, false on failure (e.g. if MPD isn't
* playing currently)
*/
- bool Seek(struct song *song, float seek_time);
+ bool Seek(Song *song, float seek_time);
void SetCrossFade(float cross_fade_seconds);