diff options
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugin.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/inputPlugin.c b/src/inputPlugin.c index 2ee0d9a8d..20b6eb14c 100644 --- a/src/inputPlugin.c +++ b/src/inputPlugin.c @@ -1,6 +1,7 @@ #include "inputPlugin.h" #include "list.h" +#include "myfprintf.h" #include <stdlib.h> #include <string.h> @@ -72,6 +73,23 @@ InputPlugin * getInputPluginFromName(char * name) { return (InputPlugin *)plugin; } +void printAllInputPluginSuffixes(FILE * fp) { + ListNode * node = inputPlugin_list->firstNode; + InputPlugin * plugin; + char ** suffixes; + + while(node) { + plugin = (InputPlugin *)node->data; + suffixes = plugin->suffixes; + while(suffixes && *suffixes) { + myfprintf(fp, "%s ", *suffixes); + suffixes++; + } + node = node->nextNode; + } + myfprintf(fp, "\n"); +} + extern InputPlugin mp3Plugin; extern InputPlugin oggPlugin; extern InputPlugin flacPlugin; |