aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseQueue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 23:19:46 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 23:19:46 +0100
commitbc1e8e01f3e6abaf2c3511ad82535046d6a7b05d (patch)
tree80608056e427a42f31fc3ec7fb43b16c8ab7d803 /src/DatabaseQueue.hxx
parentfe8e77e556999fcaeaab1bb4a3555fd72529e2e0 (diff)
downloadmpd-bc1e8e01f3e6abaf2c3511ad82535046d6a7b05d.tar.gz
mpd-bc1e8e01f3e6abaf2c3511ad82535046d6a7b05d.tar.xz
mpd-bc1e8e01f3e6abaf2c3511ad82535046d6a7b05d.zip
DatabaseQueue: pass playlist object
Don't use the global variable "g_playlist".
Diffstat (limited to '')
-rw-r--r--src/DatabaseQueue.hxx6
1 files changed, 4 insertions, 2 deletions
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