volume: don't pass "fd" to changeVolumeLevel()

The "volume" library shouldn't talk to the client.  Move error
handling to command.c.
This commit is contained in:
Max Kellermann
2008-09-07 13:50:16 +02:00
parent 8e3c40f032
commit f7e414d934
3 changed files with 26 additions and 22 deletions

View File

@@ -33,7 +33,7 @@ void finishVolume(void);
int getVolumeLevel(void);
int changeVolumeLevel(int fd, int change, int rel);
int changeVolumeLevel(int change, int rel);
void read_sw_volume_state(FILE *fp);