diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 22:41:22 +0200 |
commit | 3b09c54b6769c7e0c8152dde2850a88f51e2f3d9 (patch) | |
tree | 30f28b2bfb230ce6674a08231ead1d3eac032164 /src/audioOutputs/audioOutput_null.c | |
parent | bed2a49fe97b8f070ace2dd37909bb06540c66bd (diff) | |
download | mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.gz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.tar.xz mpd-3b09c54b6769c7e0c8152dde2850a88f51e2f3d9.zip |
output: renamed typedef AudioOutput to struct audio_output
Also rename AudioOutputPlugin to struct audio_output_plugin, and use
forward declarations to reduce include dependencies.
Diffstat (limited to 'src/audioOutputs/audioOutput_null.c')
-rw-r--r-- | src/audioOutputs/audioOutput_null.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audioOutputs/audioOutput_null.c b/src/audioOutputs/audioOutput_null.c index ed4c46309..eea1cfcbe 100644 --- a/src/audioOutputs/audioOutput_null.c +++ b/src/audioOutputs/audioOutput_null.c @@ -19,21 +19,21 @@ #include "../output_api.h" #include "../timer.h" -static int null_initDriver(AudioOutput *audioOutput, +static int null_initDriver(struct audio_output *audioOutput, mpd_unused ConfigParam *param) { audioOutput->data = NULL; return 0; } -static int null_openDevice(AudioOutput *audioOutput) +static int null_openDevice(struct audio_output *audioOutput) { audioOutput->data = timer_new(&audioOutput->outAudioFormat); audioOutput->open = 1; return 0; } -static void null_closeDevice(AudioOutput *audioOutput) +static void null_closeDevice(struct audio_output *audioOutput) { if (audioOutput->data) { timer_free(audioOutput->data); @@ -43,7 +43,7 @@ static void null_closeDevice(AudioOutput *audioOutput) audioOutput->open = 0; } -static int null_playAudio(AudioOutput *audioOutput, +static int null_playAudio(struct audio_output *audioOutput, mpd_unused const char *playChunk, size_t size) { Timer *timer = audioOutput->data; @@ -58,12 +58,12 @@ static int null_playAudio(AudioOutput *audioOutput, return 0; } -static void null_dropBufferedAudio(AudioOutput *audioOutput) +static void null_dropBufferedAudio(struct audio_output *audioOutput) { timer_reset(audioOutput->data); } -AudioOutputPlugin nullPlugin = { +struct audio_output_plugin nullPlugin = { "null", NULL, null_initDriver, |