diff options
author | Max Kellermann <max@duempel.org> | 2008-12-27 13:34:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-27 13:34:51 +0100 |
commit | 9220e0edfff2428fbbcec60460c5841cbd40eadd (patch) | |
tree | cc997a53da08b83db7add4a0813d8b2ab80cf8ad /src/ls.c | |
parent | 0e7c67067b11e2db06bfc6a05798559a7e44a25f (diff) | |
parent | 4674d0442a4edc8647c060fbff2dd5e7ae9e3f84 (diff) | |
download | mpd-9220e0edfff2428fbbcec60460c5841cbd40eadd.tar.gz mpd-9220e0edfff2428fbbcec60460c5841cbd40eadd.tar.xz mpd-9220e0edfff2428fbbcec60460c5841cbd40eadd.zip |
Merge branch 'experimental' of git://git.musicpd.org/metyl/mpd
Conflicts:
configure.ac
src/ls.h
src/output/shout_plugin.c
Diffstat (limited to '')
-rw-r--r-- | src/ls.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -83,3 +83,18 @@ hasMusicSuffix(const char *utf8file, unsigned int next) return ret; } + +const struct archive_plugin * +get_archive_by_suffix(const char *utf8file) +{ + const struct archive_plugin *ret = NULL; + + const char *s = getSuffix(utf8file); + if (s) { + ret = archive_plugin_from_suffix(s); + } else { + g_debug("get_archive_by_suffix: The file: %s has no valid suffix\n", + utf8file); + } + return ret; +} |