aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugin.h
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/inputPlugin.h
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/inputPlugin.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/inputPlugin.h b/src/inputPlugin.h
index f5418efdd..319c665c7 100644
--- a/src/inputPlugin.h
+++ b/src/inputPlugin.h
@@ -19,19 +19,21 @@
#ifndef INPUT_PLUGIN_H
#define INPUT_PLUGIN_H
-#include "decoder_api.h"
+#include "os_compat.h"
+
+struct decoder_plugin;
/* individual functions to load/unload plugins */
-void loadInputPlugin(InputPlugin * inputPlugin);
-void unloadInputPlugin(InputPlugin * inputPlugin);
+void loadInputPlugin(struct decoder_plugin * inputPlugin);
+void unloadInputPlugin(struct decoder_plugin * inputPlugin);
/* interface for using plugins */
-InputPlugin *getInputPluginFromSuffix(const char *suffix, unsigned int next);
+struct decoder_plugin *getInputPluginFromSuffix(const char *suffix, unsigned int next);
-InputPlugin *getInputPluginFromMimeType(const char *mimeType, unsigned int next);
+struct decoder_plugin *getInputPluginFromMimeType(const char *mimeType, unsigned int next);
-InputPlugin *getInputPluginFromName(const char *name);
+struct decoder_plugin *getInputPluginFromName(const char *name);
void printAllInputPluginSuffixes(FILE * fp);
@@ -41,15 +43,15 @@ void initInputPlugins(void);
/* this is where we "unload" all the "plugins" */
void finishInputPlugins(void);
-extern InputPlugin mp3Plugin;
-extern InputPlugin oggvorbisPlugin;
-extern InputPlugin flacPlugin;
-extern InputPlugin oggflacPlugin;
-extern InputPlugin audiofilePlugin;
-extern InputPlugin mp4Plugin;
-extern InputPlugin aacPlugin;
-extern InputPlugin mpcPlugin;
-extern InputPlugin wavpackPlugin;
-extern InputPlugin modPlugin;
+extern struct decoder_plugin mp3Plugin;
+extern struct decoder_plugin oggvorbisPlugin;
+extern struct decoder_plugin flacPlugin;
+extern struct decoder_plugin oggflacPlugin;
+extern struct decoder_plugin audiofilePlugin;
+extern struct decoder_plugin mp4Plugin;
+extern struct decoder_plugin aacPlugin;
+extern struct decoder_plugin mpcPlugin;
+extern struct decoder_plugin wavpackPlugin;
+extern struct decoder_plugin modPlugin;
#endif