diff options
author | Max Kellermann <max@duempel.org> | 2012-08-02 18:37:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-02 19:12:42 +0200 |
commit | 607780b7f9961c9e9d660b35a7d56e4db4adf4c8 (patch) | |
tree | 81e6c0ee1048a809dace2e12895da770e9ae16bb /src/DatabasePlugin.hxx | |
parent | af1c497759dd9289e2eadfe4e33ee6164ad7cd9a (diff) | |
download | mpd-607780b7f9961c9e9d660b35a7d56e4db4adf4c8.tar.gz mpd-607780b7f9961c9e9d660b35a7d56e4db4adf4c8.tar.xz mpd-607780b7f9961c9e9d660b35a7d56e4db4adf4c8.zip |
DatabasePlugin: add simpler Visit() wrapepr
Diffstat (limited to '')
-rw-r--r-- | src/DatabasePlugin.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/DatabasePlugin.hxx b/src/DatabasePlugin.hxx index 7ad0a8ee1..9024c7a1c 100644 --- a/src/DatabasePlugin.hxx +++ b/src/DatabasePlugin.hxx @@ -69,6 +69,19 @@ public: VisitSong visit_song, VisitPlaylist visit_playlist, GError **error_r) const = 0; + + bool Visit(const struct db_selection *selection, + VisitDirectory visit_directory, + VisitSong visit_song, + GError **error_r) const { + return Visit(selection, visit_directory, visit_song, + VisitPlaylist(), error_r); + } + + bool Visit(const struct db_selection *selection, VisitSong visit_song, + GError **error_r) const { + return Visit(selection, VisitDirectory(), visit_song, error_r); + } }; struct DatabasePlugin { |