diff options
author | Max Kellermann <max@duempel.org> | 2014-02-06 21:10:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-06 21:10:12 +0100 |
commit | 0a0659d737e8788fc1ba02e8c113e55204782716 (patch) | |
tree | 8855ba68e8648bbb81ea94899406e4b2988ae489 /src/mixer/MixerPlugin.hxx | |
parent | b6df4680df08db7827af56d5adf2a04264f2dcb9 (diff) | |
download | mpd-0a0659d737e8788fc1ba02e8c113e55204782716.tar.gz mpd-0a0659d737e8788fc1ba02e8c113e55204782716.tar.xz mpd-0a0659d737e8788fc1ba02e8c113e55204782716.zip |
mixer/Plugin: pass AudioOutput reference to init()
Passing a void pointer is unsafe.
Diffstat (limited to 'src/mixer/MixerPlugin.hxx')
-rw-r--r-- | src/mixer/MixerPlugin.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mixer/MixerPlugin.hxx b/src/mixer/MixerPlugin.hxx index 27e59accf..bf9af14e3 100644 --- a/src/mixer/MixerPlugin.hxx +++ b/src/mixer/MixerPlugin.hxx @@ -28,6 +28,7 @@ #define MPD_MIXER_PLUGIN_HXX struct config_param; +struct AudioOutput; class Mixer; class EventLoop; class Error; @@ -36,13 +37,13 @@ struct MixerPlugin { /** * Alocates and configures a mixer device. * - * @param ao the pointer returned by AudioOutputPlugin.init + * @param ao the associated AudioOutput * @param param the configuration section * @param error_r location to store the error occurring, or * nullptr to ignore errors * @return a mixer object, or nullptr on error */ - Mixer *(*init)(EventLoop &event_loop, void *ao, + Mixer *(*init)(EventLoop &event_loop, AudioOutput &ao, const config_param ¶m, Error &error); |