DatabaseQueue: pass playlist object

Don't use the global variable "g_playlist".
This commit is contained in:
Max Kellermann
2013-01-04 23:19:46 +01:00
parent fe8e77e556
commit bc1e8e01f3
4 changed files with 14 additions and 8 deletions

View File

@@ -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