aboutsummaryrefslogtreecommitdiffstats
path: root/src/stored_playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stored_playlist.c')
-rw-r--r--src/stored_playlist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c
index bbffa510b..ad9e43ce4 100644
--- a/src/stored_playlist.c
+++ b/src/stored_playlist.c
@@ -25,7 +25,6 @@
#include "ls.h"
#include "database.h"
#include "idle.h"
-#include "ack.h"
#include "os_compat.h"
static ListNode *
@@ -317,7 +316,7 @@ spl_append_song(const char *utf8path, struct song *song)
return PLAYLIST_RESULT_SUCCESS;
}
-int
+enum playlist_result
spl_append_uri(const char *url, const char *utf8file)
{
struct song *song;
@@ -327,7 +326,7 @@ spl_append_uri(const char *url, const char *utf8file)
return spl_append_song(utf8file, song);
if (!isValidRemoteUtf8Url(url))
- return ACK_ERROR_NO_EXIST;
+ return PLAYLIST_RESULT_NO_SUCH_SONG;
song = song_remote_new(url);
if (song) {
@@ -336,7 +335,7 @@ spl_append_uri(const char *url, const char *utf8file)
return ret;
}
- return ACK_ERROR_NO_EXIST;
+ return PLAYLIST_RESULT_NO_SUCH_SONG;
}
enum playlist_result