Commit 6f28eb4c authored by Max Kellermann's avatar Max Kellermann

playlist_list: export playlist_suffix_supported()

parent caf93d9a
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment