aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugin.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-30 20:25:08 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-30 20:25:08 +0000
commitd7893a3e76d261b33b83fd9333d85892b3308594 (patch)
tree3102b3c16f68d2824e7cc0921b8e7a56f7ca5026 /src/inputPlugin.h
parentbd41addd9f52d08ee2e992e82c4d746369b10fc0 (diff)
downloadmpd-d7893a3e76d261b33b83fd9333d85892b3308594.tar.gz
mpd-d7893a3e76d261b33b83fd9333d85892b3308594.tar.xz
mpd-d7893a3e76d261b33b83fd9333d85892b3308594.zip
finish implementing inputPlugin interface
git-svn-id: https://svn.musicpd.org/mpd/trunk@1244 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugin.h')
-rw-r--r--src/inputPlugin.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/inputPlugin.h b/src/inputPlugin.h
index a84e54944..9f57037fb 100644
--- a/src/inputPlugin.h
+++ b/src/inputPlugin.h
@@ -28,16 +28,20 @@ typedef struct _InputPlugin {
char ** mimeTypes;
} InputPlugin;
-/* interface for adding and removing plugins */
-
-InputPlugin * newInputPlugin();
+/* interface for constructing a plugin */
+InputPlugin * newInputPlugin(char * name, InputPlugin_streamDecodeFunc
+ streamDecodeFunc, InputPlugin_fileDecodeFunc fileDecodeFunc,
+ InputPlugin_tagDupFunc tagDupFunc, unsigned char streamTypes);
void addSuffixToInputPlugin(InputPlugin * inPlugin, char * suffix);
-
void addMimeTypeToInputPlugin(InputPlugin * inPlugin, char * suffix);
-
void freeInputPlugin(InputPlugin * inputPlugin);
+/* individual functions to load/unload plugins */
+void loadInputPlugin(InputPlugin * inputPlugin);
+/* this free's inputPlugin as well! */
+void unloadInputPlugin(InputPlugin * inputPlugin);
+
/* interface for using plugins */
InputPlugin * getInputPluginFromSuffix(char * suffix);
@@ -56,6 +60,4 @@ void initInputPlugins();
/* this is where we "unload" all the "plugins" */
void finishInputPlugins();
-void unloadInputPlugin(InputPlugin * inputPlugin);
-
#endif