From bc1e8e01f3e6abaf2c3511ad82535046d6a7b05d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Jan 2013 23:19:46 +0100 Subject: DatabaseQueue: pass playlist object Don't use the global variable "g_playlist". --- src/DatabaseQueue.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/DatabaseQueue.hxx') diff --git a/src/DatabaseQueue.hxx b/src/DatabaseQueue.hxx index 21ffe0fb0..50ed7d03a 100644 --- a/src/DatabaseQueue.hxx +++ b/src/DatabaseQueue.hxx @@ -24,11 +24,13 @@ #include "gerror.h" class SongFilter; +struct playlist; struct player_control; -gcc_nonnull(1,2) +gcc_nonnull(2,3) bool -findAddIn(struct player_control *pc, const char *name, +findAddIn(struct playlist &playlist, struct player_control *pc, + const char *name, const SongFilter *filter, GError **error_r); #endif -- cgit v1.2.3