From 1f0dfb4407344996bbe874525413275b79da12b3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 18 Jan 2009 16:56:07 +0100 Subject: mapper: make the music_directory optional Without a music_directory, MPD is an excellent streaming client. --- src/mapper.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mapper.h') diff --git a/src/mapper.h b/src/mapper.h index d33a21bbf..874add377 100644 --- a/src/mapper.h +++ b/src/mapper.h @@ -23,6 +23,8 @@ #ifndef MPD_MAPPER_H #define MPD_MAPPER_H +#include + #define PLAYLIST_FILE_SUFFIX "m3u" struct directory; @@ -32,6 +34,12 @@ void mapper_init(void); void mapper_finish(void); +/** + * Returns true if a music directory was configured. + */ +bool +mapper_has_music_directory(void); + /** * Determines the absolute file system path of a relative URI. This * is basically done by converting the URI to the file system charset -- cgit v1.2.3