From fb92040d4b05fb72399428fe1a6abbf029a3ab0c Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 1 May 2015 10:54:58 +0200 Subject: [PATCH] expose generic player_queue_make function --- src/player.c | 2 +- src/player.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index 1842222b..e4f64f40 100644 --- a/src/player.c +++ b/src/player.c @@ -759,7 +759,7 @@ metadata_check_icy(void) /* Audio sources */ /* Thread: httpd (DACP) */ -static struct player_source * +struct player_source * player_queue_make(struct query_params *qp) { struct db_media_file_info dbmfi; diff --git a/src/player.h b/src/player.h index a0a591e1..0f14f6b0 100644 --- a/src/player.h +++ b/src/player.h @@ -4,6 +4,8 @@ #include +#include "db.h" + /* AirTunes v2 packet interval in ns */ /* (352 samples/packet * 1e9 ns/s) / 44100 samples/s = 7981859 ns/packet */ # define AIRTUNES_V2_STREAM_PERIOD 7981859 @@ -182,6 +184,9 @@ player_repeat_set(enum repeat_mode mode); int player_shuffle_set(int enable); +struct player_source * +player_queue_make(struct query_params *qp); + int player_queue_make_daap(struct player_source **head, const char *query, const char *queuefilter, const char *sort, int quirk);