aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_list.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-06 01:07:39 +0100
committerMax Kellermann <max@duempel.org>2009-11-06 01:07:39 +0100
commit7e66f341544488c839c05e5c1589c8b8ca959334 (patch)
treee1f51e6e482bcd3cb0f5a249d98653255adc3ea9 /src/playlist_list.h
parentf3203b5de50dd40e014fd4d3829b8bc172976649 (diff)
downloadmpd-7e66f341544488c839c05e5c1589c8b8ca959334.tar.gz
mpd-7e66f341544488c839c05e5c1589c8b8ca959334.tar.xz
mpd-7e66f341544488c839c05e5c1589c8b8ca959334.zip
playlist_list: added function playlist_list_open_path()
Added an interface for loading playlists from a local file.
Diffstat (limited to 'src/playlist_list.h')
-rw-r--r--src/playlist_list.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/playlist_list.h b/src/playlist_list.h
index b5ac52a6f..ebfc5c509 100644
--- a/src/playlist_list.h
+++ b/src/playlist_list.h
@@ -51,4 +51,15 @@ playlist_list_open_uri(const char *uri);
struct playlist_provider *
playlist_list_open_stream(struct input_stream *is, const char *uri);
+/**
+ * Opens a playlist from a local file.
+ *
+ * @param is an uninitialized #input_stream object (must be closed
+ * with input_stream_close() if this function succeeds)
+ * @param path_fs the path of the playlist file
+ * @return a playlist, or NULL on error
+ */
+struct playlist_provider *
+playlist_list_open_path(struct input_stream *is, const char *path_fs);
+
#endif