aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-29 18:55:49 +0200
committerMax Kellermann <max@duempel.org>2012-08-29 18:55:49 +0200
commit6d4ca071a5cefc756f734e57a7799b80ff037ddb (patch)
treed1a71fdd2509d37494f76f29d17ea11252b7c4f5 /src/PlaylistCommands.cxx
parent684a3d30a682aecbf8be786a70328d1885afaf05 (diff)
downloadmpd-6d4ca071a5cefc756f734e57a7799b80ff037ddb.tar.gz
mpd-6d4ca071a5cefc756f734e57a7799b80ff037ddb.tar.xz
mpd-6d4ca071a5cefc756f734e57a7799b80ff037ddb.zip
dbUtils.h: eliminate this header
Diffstat (limited to '')
-rw-r--r--src/PlaylistCommands.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlaylistCommands.cxx b/src/PlaylistCommands.cxx
index aa2e8654a..d74036ec3 100644
--- a/src/PlaylistCommands.cxx
+++ b/src/PlaylistCommands.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "PlaylistCommands.hxx"
+#include "DatabasePlaylist.hxx"
#include "CommandError.h"
extern "C" {
@@ -32,7 +33,6 @@ extern "C" {
#include "ls.h"
#include "uri.h"
#include "stored_playlist.h"
-#include "dbUtils.h"
#include "client_internal.h"
}
@@ -201,7 +201,8 @@ handle_playlistadd(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
success = spl_append_uri(argv[1], playlist, &error);
} else
- success = addAllInToStoredPlaylist(uri, playlist, &error);
+ success = search_add_to_playlist(uri, playlist, nullptr,
+ &error);
if (!success && error == NULL) {
command_error(client, ACK_ERROR_NO_EXIST,