do not store commands list in MPD::Connection

it should have sent commandlist begin and end commands from the beginning,
having separated functions just to handle queueing commands was plainly ugly.
This commit is contained in:
Andrzej Rybczak
2009-03-12 17:30:25 +01:00
parent 8a4ee22b61
commit 24c37eb592
11 changed files with 202 additions and 230 deletions

View File

@@ -2066,7 +2066,7 @@ void mpd_sendPlaylistMoveCommand(mpd_Connection *connection,
}
void mpd_sendPlaylistDeleteCommand(mpd_Connection *connection,
char *playlist, int pos)
const char *playlist, int pos)
{
char *sPlaylist = mpd_sanitizeArg(playlist);
int len = strlen("playlistdelete")+2+strlen(sPlaylist)+3+INTLEN+3;