diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 14:04:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 14:04:16 +0200 |
commit | 4d8438e63d7c1cbed3ec40bf073574f3c01fce56 (patch) | |
tree | 0c45a8da034b2bbb618c1dc9fd477ad73eb077a1 /src/audio.c | |
parent | a6c5928c75a57a7f75279dfec39448899b22b046 (diff) | |
download | mpd-4d8438e63d7c1cbed3ec40bf073574f3c01fce56.tar.gz mpd-4d8438e63d7c1cbed3ec40bf073574f3c01fce56.tar.xz mpd-4d8438e63d7c1cbed3ec40bf073574f3c01fce56.zip |
audio: don't pass "fd" to printAudioDevices()
Pass the client struct instead.
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/audio.c b/src/audio.c index cea5a5a93..5715ec8b5 100644 --- a/src/audio.c +++ b/src/audio.c @@ -20,7 +20,7 @@ #include "audioOutput.h" #include "log.h" #include "path.h" -#include "myfprintf.h" +#include "client.h" #include "os_compat.h" #define AUDIO_DEVICE_STATE "audio_device_state:" @@ -448,16 +448,18 @@ int disableAudioDevice(unsigned int device) return 0; } -void printAudioDevices(int fd) +void printAudioDevices(struct client *client) { unsigned int i; for (i = 0; i < audioOutputArraySize; i++) { - fdprintf(fd, - "outputid: %i\noutputname: %s\noutputenabled: %i\n", - i, - audioOutputArray[i].name, - audioDeviceStates[i] & 0x01); + client_printf(client, + "outputid: %i\n" + "outputname: %s\n" + "outputenabled: %i\n", + i, + audioOutputArray[i].name, + audioDeviceStates[i] & 0x01); } } |