aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 16:56:07 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 16:56:07 +0100
commit1f0dfb4407344996bbe874525413275b79da12b3 (patch)
tree6da8c04bf1e3c6143927d3a69eecb3532f88939f /src/mapper.h
parent9933144de7389b12b2a75cfb4320baecefa952af (diff)
downloadmpd-1f0dfb4407344996bbe874525413275b79da12b3.tar.gz
mpd-1f0dfb4407344996bbe874525413275b79da12b3.tar.xz
mpd-1f0dfb4407344996bbe874525413275b79da12b3.zip
mapper: make the music_directory optional
Without a music_directory, MPD is an excellent streaming client.
Diffstat (limited to 'src/mapper.h')
-rw-r--r--src/mapper.h8
1 files changed, 8 insertions, 0 deletions
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 <stdbool.h>
+
#define PLAYLIST_FILE_SUFFIX "m3u"
struct directory;
@@ -33,6 +35,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
* and prepending the music directory.