aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-29 15:54:27 +0200
committerMax Kellermann <max@duempel.org>2008-09-29 15:54:27 +0200
commit21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac (patch)
treea1e59b7c540df8955de3a79620d3bcfd102a4095 /src/decoder_list.c
parenta7651b9d307efe2473bd68510aa9a6225e7a0b64 (diff)
downloadmpd-21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac.tar.gz
mpd-21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac.tar.xz
mpd-21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac.zip
decoder: renamed plugin methods
Why have a "_func" prefix on all method names? Also don't typedef the methods, there is no advantage in that.
Diffstat (limited to 'src/decoder_list.c')
-rw-r--r--src/decoder_list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c
index 8bbe40924..6626f556a 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -40,7 +40,7 @@ void decoder_plugin_load(struct decoder_plugin * inputPlugin)
if (!inputPlugin->name)
return;
- if (inputPlugin->init_func && inputPlugin->init_func() < 0)
+ if (inputPlugin->init != NULL && inputPlugin->init() < 0)
return;
insertInList(inputPlugin_list, inputPlugin->name, (void *)inputPlugin);
@@ -48,8 +48,8 @@ void decoder_plugin_load(struct decoder_plugin * inputPlugin)
void decoder_plugin_unload(struct decoder_plugin * inputPlugin)
{
- if (inputPlugin->finish_func)
- inputPlugin->finish_func();
+ if (inputPlugin->finish != NULL)
+ inputPlugin->finish();
deleteFromList(inputPlugin_list, inputPlugin->name);
}