aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 11:30:26 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 13:30:47 +0200
commit7a1d466fb279659048e80e2853a7906c90d73235 (patch)
treef0c73e11b86b584a1a3f230507eabcf6f02986ea /src/DecoderPlugin.hxx
parent83f4c48c8aaa46bbede4447c95939af310ea28ad (diff)
downloadmpd-7a1d466fb279659048e80e2853a7906c90d73235.tar.gz
mpd-7a1d466fb279659048e80e2853a7906c90d73235.tar.xz
mpd-7a1d466fb279659048e80e2853a7906c90d73235.zip
DecoderPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r--src/DecoderPlugin.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DecoderPlugin.hxx b/src/DecoderPlugin.hxx
index b250c4274..687447dee 100644
--- a/src/DecoderPlugin.hxx
+++ b/src/DecoderPlugin.hxx
@@ -42,7 +42,7 @@ struct decoder_plugin {
* @return true if the plugin was initialized successfully,
* false if the plugin is not available
*/
- bool (*init)(const struct config_param *param);
+ bool (*init)(const config_param &param);
/**
* Deinitialize a decoder plugin which was initialized
@@ -112,7 +112,7 @@ struct decoder_plugin {
*/
static inline bool
decoder_plugin_init(const struct decoder_plugin *plugin,
- const struct config_param *param)
+ const config_param &param)
{
return plugin->init != nullptr
? plugin->init(param)