aboutsummaryrefslogtreecommitdiffstats
path: root/src/db_visitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/db_visitor.h')
-rw-r--r--src/db_visitor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/db_visitor.h b/src/db_visitor.h
index 3eb215c86..f68054ec2 100644
--- a/src/db_visitor.h
+++ b/src/db_visitor.h
@@ -22,6 +22,7 @@
struct directory;
struct song;
+struct playlist_metadata;
struct db_visitor {
/**
@@ -38,6 +39,14 @@ struct db_visitor {
* @return true to continue the operation, false on error (set error_r)
*/
bool (*song)(struct song *song, void *ctx, GError **error_r);
+
+ /**
+ * Visit a playlist. Optional method.
+ *
+ * @return true to continue the operation, false on error (set error_r)
+ */
+ bool (*playlist)(const struct playlist_metadata *playlist, void *ctx,
+ GError **error_r);
};
#endif