aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 19:50:54 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 13:06:40 +0200
commitc772bc45c60be3f559cdd42a9628f37f15da0a17 (patch)
tree2a30c33f17c6be05510af649027aafea805417ae /src/Partition.hxx
parentc1e7be3b8e4ab5fb99587b8e5f262ce41805f892 (diff)
downloadmpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.tar.gz
mpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.tar.xz
mpd-c772bc45c60be3f559cdd42a9628f37f15da0a17.zip
PlaylistError: convert playlist_result to a strictly-typed enum
Diffstat (limited to '')
-rw-r--r--src/Partition.hxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 0d5017985..f6315eade 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -48,21 +48,21 @@ struct Partition {
playlist.Clear(pc);
}
- enum playlist_result AppendFile(const char *path_utf8,
- unsigned *added_id=nullptr) {
+ PlaylistResult AppendFile(const char *path_utf8,
+ unsigned *added_id=nullptr) {
return playlist.AppendFile(pc, path_utf8, added_id);
}
- enum playlist_result AppendURI(const char *uri_utf8,
- unsigned *added_id=nullptr) {
+ PlaylistResult AppendURI(const char *uri_utf8,
+ unsigned *added_id=nullptr) {
return playlist.AppendURI(pc, uri_utf8, added_id);
}
- enum playlist_result DeletePosition(unsigned position) {
+ PlaylistResult DeletePosition(unsigned position) {
return playlist.DeletePosition(pc, position);
}
- enum playlist_result DeleteId(unsigned id) {
+ PlaylistResult DeleteId(unsigned id) {
return playlist.DeleteId(pc, id);
}
@@ -72,7 +72,7 @@ struct Partition {
* @param start the position of the first song to delete
* @param end the position after the last song to delete
*/
- enum playlist_result DeleteRange(unsigned start, unsigned end) {
+ PlaylistResult DeleteRange(unsigned start, unsigned end) {
return playlist.DeleteRange(pc, start, end);
}
@@ -84,32 +84,32 @@ struct Partition {
playlist.Shuffle(pc, start, end);
}
- enum playlist_result MoveRange(unsigned start, unsigned end, int to) {
+ PlaylistResult MoveRange(unsigned start, unsigned end, int to) {
return playlist.MoveRange(pc, start, end, to);
}
- enum playlist_result MoveId(unsigned id, int to) {
+ PlaylistResult MoveId(unsigned id, int to) {
return playlist.MoveId(pc, id, to);
}
- enum playlist_result SwapPositions(unsigned song1, unsigned song2) {
+ PlaylistResult SwapPositions(unsigned song1, unsigned song2) {
return playlist.SwapPositions(pc, song1, song2);
}
- enum playlist_result SwapIds(unsigned id1, unsigned id2) {
+ PlaylistResult SwapIds(unsigned id1, unsigned id2) {
return playlist.SwapIds(pc, id1, id2);
}
- enum playlist_result SetPriorityRange(unsigned start_position,
- unsigned end_position,
- uint8_t priority) {
+ PlaylistResult SetPriorityRange(unsigned start_position,
+ unsigned end_position,
+ uint8_t priority) {
return playlist.SetPriorityRange(pc,
start_position, end_position,
priority);
}
- enum playlist_result SetPriorityId(unsigned song_id,
- uint8_t priority) {
+ PlaylistResult SetPriorityId(unsigned song_id,
+ uint8_t priority) {
return playlist.SetPriorityId(pc, song_id, priority);
}
@@ -117,11 +117,11 @@ struct Partition {
playlist.Stop(pc);
}
- enum playlist_result PlayPosition(int position) {
+ PlaylistResult PlayPosition(int position) {
return playlist.PlayPosition(pc, position);
}
- enum playlist_result PlayId(int id) {
+ PlaylistResult PlayId(int id) {
return playlist.PlayId(pc, id);
}
@@ -133,16 +133,16 @@ struct Partition {
return playlist.PlayPrevious(pc);
}
- enum playlist_result SeekSongPosition(unsigned song_position,
- float seek_time) {
+ PlaylistResult SeekSongPosition(unsigned song_position,
+ float seek_time) {
return playlist.SeekSongPosition(pc, song_position, seek_time);
}
- enum playlist_result SeekSongId(unsigned song_id, float seek_time) {
+ PlaylistResult SeekSongId(unsigned song_id, float seek_time) {
return playlist.SeekSongId(pc, song_id, seek_time);
}
- enum playlist_result SeekCurrent(float seek_time, bool relative) {
+ PlaylistResult SeekCurrent(float seek_time, bool relative) {
return playlist.SeekCurrent(pc, seek_time, relative);
}