aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-27 13:34:51 +0100
committerMax Kellermann <max@duempel.org>2008-12-27 13:34:51 +0100
commit9220e0edfff2428fbbcec60460c5841cbd40eadd (patch)
treecc997a53da08b83db7add4a0813d8b2ab80cf8ad /src/ls.c
parent0e7c67067b11e2db06bfc6a05798559a7e44a25f (diff)
parent4674d0442a4edc8647c060fbff2dd5e7ae9e3f84 (diff)
downloadmpd-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 'src/ls.c')
-rw-r--r--src/ls.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ls.c b/src/ls.c
index 164b543c4..f0f403f44 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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;
+}