implement argv handler and basic mpc commands

This commit is contained in:
unK
2008-10-05 22:41:29 +02:00
parent 9fd373625d
commit 4ab4e72c97
7 changed files with 152 additions and 13 deletions

View File

@@ -439,11 +439,11 @@ void mpd_closeConnection(mpd_Connection * connection) {
WSACleanup();
}
static void mpd_executeCommand(mpd_Connection * connection, char * command) {
void mpd_executeCommand(mpd_Connection * connection, const char * command) {
int ret;
struct timeval tv;
fd_set fds;
char * commandPtr = command;
const char * commandPtr = command;
int commandLen = strlen(command);
if(!connection->doneProcessing && !connection->commandList) {