player: no "fd" and no return value

Most player*() functions do not actually use the file descriptor, and
always return 0 (success).  Eliminate them to get a leaner interface.
This commit is contained in:
Max Kellermann
2008-08-26 08:27:16 +02:00
parent 6df980a996
commit 3db333b5a4
4 changed files with 30 additions and 47 deletions

View File

@@ -292,9 +292,12 @@ static int handlePause(int fd, mpd_unused int *permission,
int pause_flag;
if (check_int(fd, &pause_flag, argv[1], check_boolean, argv[1]) < 0)
return -1;
return playerSetPause(fd, pause_flag);
playerSetPause(pause_flag);
return 0;
}
return playerPause(fd);
playerPause();
return 0;
}
static int commandStatus(mpd_unused int fd, mpd_unused int *permission,