PlaylistError: add NotPlaying()

This commit is contained in:
Max Kellermann
2016-02-28 10:38:17 +01:00
parent 92f54f0b59
commit f8810d7caf
2 changed files with 9 additions and 11 deletions

View File

@@ -64,6 +64,11 @@ public:
return PlaylistError(PlaylistResult::BAD_RANGE,
"Bad song index");
}
static PlaylistError NotPlaying() {
return PlaylistError(PlaylistResult::NOT_PLAYING,
"Not playing");
}
};
#endif