aboutsummaryrefslogtreecommitdiffstats
path: root/src/db_visitor.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-13 22:02:37 +0200
committerMax Kellermann <max@duempel.org>2011-09-13 22:02:37 +0200
commitc779e2674abbc3eed08e49296c188a9f9ed5270e (patch)
tree35a3a84bb32f595c7916eda865c38e0b27d38418 /src/db_visitor.h
parenta94d4be466ea3a48389361b483f72df45834f7d2 (diff)
downloadmpd-c779e2674abbc3eed08e49296c188a9f9ed5270e.tar.gz
mpd-c779e2674abbc3eed08e49296c188a9f9ed5270e.tar.xz
mpd-c779e2674abbc3eed08e49296c188a9f9ed5270e.zip
db_visitor: add method playlist()
Diffstat (limited to '')
-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