diff options
Diffstat (limited to 'src/inputPlugin.h')
-rw-r--r-- | src/inputPlugin.h | 16 |
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 |