AllCommands: "commands" returns playlist commands only if playlist_directory configured

This commit is contained in:
Max Kellermann
2014-10-25 23:49:35 +02:00
parent fa0aa91bf9
commit 575fbad254
4 changed files with 25 additions and 0 deletions

View File

@@ -35,9 +35,17 @@
#include "protocol/ArgParser.hxx"
#include "protocol/Result.hxx"
#include "ls.hxx"
#include "Mapper.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
bool
playlist_commands_available()
{
return !map_spl_path().IsNull();
}
static void
print_spl_list(Client &client, const PlaylistVector &list)
{