From 6f28eb4c0a0f7987b8863244f96551984db2b3de Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 31 May 2010 23:29:18 +0200 Subject: playlist_list: export playlist_suffix_supported() --- src/playlist_list.c | 2 +- src/playlist_list.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') 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 + 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. * -- cgit v1.2.3