diff options
author | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
commit | ba161ec572b98d3bcf9f735ff122133319fe896a (patch) | |
tree | a211690e3a8b7fce1fb6db540228122bead1f2bc /src/Playlist.hxx | |
parent | 43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff) | |
download | mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip |
song: convert header to C++
Diffstat (limited to 'src/Playlist.hxx')
-rw-r--r-- | src/Playlist.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Playlist.hxx b/src/Playlist.hxx index c01813322..c640b78ed 100644 --- a/src/Playlist.hxx +++ b/src/Playlist.hxx @@ -26,6 +26,7 @@ #include <stdbool.h> struct player_control; +struct Song; struct playlist { /** @@ -99,7 +100,7 @@ struct playlist { * none if there is none (yet?) or if MPD isn't playing. */ gcc_pure - const struct song *GetQueuedSong() const; + const Song *GetQueuedSong() const; /** * This is the "PLAYLIST" event handler. It is invoked by the @@ -124,7 +125,7 @@ protected: * @param prev the song which was previously queued, as * determined by playlist_get_queued_song() */ - void UpdateQueuedSong(player_control &pc, const song *prev); + void UpdateQueuedSong(player_control &pc, const Song *prev); public: void Clear(player_control &pc); @@ -134,7 +135,7 @@ public: void FullIncrementVersions(); enum playlist_result AppendSong(player_control &pc, - struct song *song, + Song *song, unsigned *added_id=nullptr); /** @@ -153,7 +154,7 @@ public: protected: void DeleteInternal(player_control &pc, - unsigned song, const struct song **queued_p); + unsigned song, const Song **queued_p); public: enum playlist_result DeletePosition(player_control &pc, @@ -175,7 +176,7 @@ public: enum playlist_result DeleteRange(player_control &pc, unsigned start, unsigned end); - void DeleteSong(player_control &pc, const song &song); + void DeleteSong(player_control &pc, const Song &song); void Shuffle(player_control &pc, unsigned start, unsigned end); |