aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseVisitor.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/DatabaseVisitor.hxx (renamed from src/song_print.h)21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/song_print.h b/src/DatabaseVisitor.hxx
index 8f1f0cc65..c90441415 100644
--- a/src/song_print.h
+++ b/src/DatabaseVisitor.hxx
@@ -17,17 +17,22 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_SONG_PRINT_H
-#define MPD_SONG_PRINT_H
+#ifndef MPD_DATABASE_VISITOR_HXX
+#define MPD_DATABASE_VISITOR_HXX
-struct client;
+#include "gerror.h"
+
+#include <functional>
+
+struct Directory;
struct song;
-struct songvec;
+struct PlaylistInfo;
-void
-song_print_info(struct client *client, struct song *song);
+typedef std::function<bool(const Directory &, GError **)> VisitDirectory;
+typedef std::function<bool(struct song &, GError **)> VisitSong;
+typedef std::function<bool(const PlaylistInfo &, const Directory &,
+ GError **)> VisitPlaylist;
-void
-song_print_uri(struct client *client, struct song *song);
+typedef std::function<bool(const char *, GError **)> VisitString;
#endif