aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistRegistry.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 09:37:54 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 09:40:55 +0200
commit8929f88e6d78d538d943e80b66fcf21706e53974 (patch)
tree01232fd55f40dfa1cded59cb28a79b257ebb19e4 /src/PlaylistRegistry.hxx
parent5348808bf594de927cc64eebae9118d6971343b1 (diff)
downloadmpd-8929f88e6d78d538d943e80b66fcf21706e53974.tar.gz
mpd-8929f88e6d78d538d943e80b66fcf21706e53974.tar.xz
mpd-8929f88e6d78d538d943e80b66fcf21706e53974.zip
PlaylistPlugin: add interface SongEnumerator
Replaces struct playlist_provider.
Diffstat (limited to 'src/PlaylistRegistry.hxx')
-rw-r--r--src/PlaylistRegistry.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PlaylistRegistry.hxx b/src/PlaylistRegistry.hxx
index 7c34c1565..350987012 100644
--- a/src/PlaylistRegistry.hxx
+++ b/src/PlaylistRegistry.hxx
@@ -23,7 +23,7 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
-struct playlist_provider;
+class SongEnumerator;
struct input_stream;
extern const struct playlist_plugin *const playlist_plugins[];
@@ -49,7 +49,7 @@ playlist_list_global_finish(void);
/**
* Opens a playlist by its URI.
*/
-struct playlist_provider *
+SongEnumerator *
playlist_list_open_uri(const char *uri, Mutex &mutex, Cond &cond);
/**
@@ -59,7 +59,7 @@ playlist_list_open_uri(const char *uri, Mutex &mutex, Cond &cond);
* @param uri optional URI which was used to open the stream; may be
* used to select the appropriate playlist plugin
*/
-struct playlist_provider *
+SongEnumerator *
playlist_list_open_stream(struct input_stream *is, const char *uri);
/**
@@ -77,7 +77,7 @@ playlist_suffix_supported(const char *suffix);
* which must be closed after the playlist_provider object is freed
* @return a playlist, or NULL on error
*/
-struct playlist_provider *
+SongEnumerator *
playlist_list_open_path(const char *path_fs, Mutex &mutex, Cond &cond,
struct input_stream **is_r);