nice output of all suffix types supported in version
git-svn-id: https://svn.musicpd.org/mpd/trunk@1276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user