DatabasePlugin: add simpler Visit() wrapepr

This commit is contained in:
Max Kellermann 2012-08-02 18:37:15 +02:00
parent af1c497759
commit 607780b7f9
1 changed files with 13 additions and 0 deletions

View File

@ -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 {