mapper: make the music_directory optional

Without a music_directory, MPD is an excellent streaming client.
This commit is contained in:
Max Kellermann
2009-01-18 16:56:07 +01:00
parent 9933144de7
commit 1f0dfb4407
8 changed files with 95 additions and 35 deletions

View File

@@ -23,6 +23,8 @@
#ifndef MPD_MAPPER_H
#define MPD_MAPPER_H
#include <stdbool.h>
#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