playlist_list: export playlist_suffix_supported()

This commit is contained in:
Max Kellermann 2010-05-31 23:29:18 +02:00
parent caf93d9a2c
commit 6f28eb4c0a
2 changed files with 10 additions and 1 deletions

View File

@ -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);

View File

@ -20,6 +20,8 @@
#ifndef MPD_PLAYLIST_LIST_H
#define MPD_PLAYLIST_LIST_H
#include <stdbool.h>
struct playlist_provider;
struct input_stream;
@ -51,6 +53,13 @@ playlist_list_open_uri(const char *uri);
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.
*