aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
commite41be362a1dc5691721d72b7f915e32d7f5272bb (patch)
tree296478ef28a6c2a9dbf54e39328b754223459cf2 /src/ls.c
parentcdaa26c81d692fefe5c9c2a4a01dcff633c99564 (diff)
downloadmpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.tar.gz
mpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.tar.xz
mpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.zip
renamed InputPlugin to struct decoder_plugin
"decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required.
Diffstat (limited to '')
-rw-r--r--src/ls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ls.c b/src/ls.c
index 3032935c6..26b2339c2 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -257,9 +257,9 @@ int isDir(const char *utf8name)
return 0;
}
-InputPlugin *hasMusicSuffix(const char *utf8file, unsigned int next)
+struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next)
{
- InputPlugin *ret = NULL;
+ struct decoder_plugin *ret = NULL;
const char *s = getSuffix(utf8file);
if (s) {
@@ -272,10 +272,11 @@ InputPlugin *hasMusicSuffix(const char *utf8file, unsigned int next)
return ret;
}
-InputPlugin *isMusic(const char *utf8file, time_t * mtime, unsigned int next)
+struct decoder_plugin *isMusic(const char *utf8file, time_t * mtime,
+ unsigned int next)
{
if (isFile(utf8file, mtime)) {
- InputPlugin *plugin = hasMusicSuffix(utf8file, next);
+ struct decoder_plugin *plugin = hasMusicSuffix(utf8file, next);
if (plugin != NULL)
return plugin;
}