diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:57:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 13:57:26 +0200 |
commit | f59986fad5dd8e00beffcd038112d81963408539 (patch) | |
tree | 4af8b69b754ba0e2600b3d1418b8f8fae7502161 /src/playlist.c | |
parent | dc8b64fdef1f8bc4499eef3aca17ed336ea3569b (diff) |
playlist: pass struct client to loadPlaylist()
The function loadPlaylist() wants to report incremental errors to the
client, for this reason we cannot remove its protocol dependency right
now. Instead, make it use the client struct instead of the raw file
descriptor.
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist.c b/src/playlist.c index c512d739b..042907e16 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1370,7 +1370,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail) return 0; } -enum playlist_result loadPlaylist(int fd, const char *utf8file) +enum playlist_result loadPlaylist(struct client *client, const char *utf8file) { ListNode *node; List *list; @@ -1391,8 +1391,8 @@ enum playlist_result loadPlaylist(int fd, const char *utf8file) p++; } if ((addToPlaylist(temp, NULL)) != PLAYLIST_RESULT_SUCCESS) { - commandError(fd, ACK_ERROR_PLAYLIST_LOAD, - "can't add file \"%s\"", temp2); + command_error(client, ACK_ERROR_PLAYLIST_LOAD, + "can't add file \"%s\"", temp2); } free(temp2); } |