aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-31 23:29:18 +0200
committerMax Kellermann <max@duempel.org>2010-06-01 09:59:56 +0200
commit6f28eb4c0a0f7987b8863244f96551984db2b3de (patch)
tree35b0a088d006ce00f6a69844c50f04d7870ac3a4
parentcaf93d9a2c2360a5b4a1d841fb83394d6bf4fc09 (diff)
downloadmpd-6f28eb4c0a0f7987b8863244f96551984db2b3de.tar.gz
mpd-6f28eb4c0a0f7987b8863244f96551984db2b3de.tar.xz
mpd-6f28eb4c0a0f7987b8863244f96551984db2b3de.zip
playlist_list: export playlist_suffix_supported()
Diffstat (limited to '')
-rw-r--r--src/playlist_list.c2
-rw-r--r--src/playlist_list.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/playlist_list.c b/src/playlist_list.c
index e8319bd17..78a1040f7 100644
--- a/src/playlist_list.c
+++ b/src/playlist_list.c
@@ -267,7 +267,7 @@ playlist_list_open_stream(struct input_stream *is, const char *uri)
return NULL;
}
-static bool
+bool
playlist_suffix_supported(const char *suffix)
{
assert(suffix != NULL);
diff --git a/src/playlist_list.h b/src/playlist_list.h
index 11a2356da..3710589a2 100644
--- a/src/playlist_list.h
+++ b/src/playlist_list.h
@@ -20,6 +20,8 @@
#ifndef MPD_PLAYLIST_LIST_H
#define MPD_PLAYLIST_LIST_H
+#include <stdbool.h>
+
struct playlist_provider;
struct input_stream;
@@ -52,6 +54,13 @@ struct playlist_provider *
playlist_list_open_stream(struct input_stream *is, const char *uri);
/**
+ * Determines if there is a playlist plugin which can handle the
+ * specified file name suffix.
+ */
+bool
+playlist_suffix_supported(const char *suffix);
+
+/**
* Opens a playlist from a local file.
*
* @param path_fs the path of the playlist file