From c779e2674abbc3eed08e49296c188a9f9ed5270e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Sep 2011 22:02:37 +0200 Subject: db_visitor: add method playlist() --- src/db_visitor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/db_visitor.h') 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 -- cgit v1.2.3