aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 20:10:19 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 20:10:19 +0100
commit0a0b473765fe5ba43f442e3d12853add3ff51415 (patch)
treee6abfddf8066f1c9cf7ab0836505303ad0457ce0 /src/mapper.c
parentdf2d0414837ec0b53836f9c32e0f93d3baaefb14 (diff)
downloadmpd-0a0b473765fe5ba43f442e3d12853add3ff51415.tar.gz
mpd-0a0b473765fe5ba43f442e3d12853add3ff51415.tar.xz
mpd-0a0b473765fe5ba43f442e3d12853add3ff51415.zip
mapper: add mapper_get_music_directory()
Shortcut for map_directory_fs(db_get_root()).
Diffstat (limited to '')
-rw-r--r--src/mapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapper.c b/src/mapper.c
index 4aa4e0b14..d230f5d92 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -117,10 +117,10 @@ void mapper_finish(void)
g_free(playlist_dir);
}
-bool
-mapper_has_music_directory(void)
+const char *
+mapper_get_music_directory(void)
{
- return music_dir != NULL;
+ return music_dir;
}
const char *