Plugin Manager Library Functions.
More...
Plugin Manager Library Functions.
Create a new instance of a plugin manager.
A PluginManager manages a collection of plugins, loaded and unloaded by the load and unload API functions respectively.
- Parameters
-
pluginDir | Full path to folder containing plugins. If NULL, uses default folder. |
- Returns
- On success, a handle to a Plugin manager, on failure, NULL.
Free the plugin manager. A call to this function will also unload any loaded plugins.
- Parameters
-
handle | Handle to a plugin manager. |
- Returns
- true if success, false otherwise.
free the plugin manager
getCurrentPlugin retrieves the "current" plugin in the plugin managers internal list of plugins. This function is typically used together with the getFirst, Next and getPreviousPlugin functions.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns a handle to a plugin. Returns NULL if the plugin is not found
getFirstPlugin retrieves the "first" plugin in the plugin managers internal list of plugins. This function is typically used together with the getNextPlugin and the getPreviousPlugin functions.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns a handle to a plugin. Returns NULL if the plugin is not found
getNextPlugin retrieves the "next" plugin in the plugin managers internal list of plugins. This function is typically used together with the getFirstPlugin and getPreviousPlugin functions.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns a handle to a plugin. Returns NULL if the plugin is not found
Get Number of loaded plugins.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns the number of loaded plugins, -1 if a problem is encountered
GetPluginHandle.
- Parameters
-
handle | Handle to a PluginManager instance |
pluginName | Pointer to string holding the name of a plugin |
- Returns
- Returns a handle to a plugin, with name as supplied in the parameter pluginName. Returns NULL if the plugin is not found
Function to retrieve the library name of currently loaded plugins.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns names for loaded plugins as a RRStringArrayPtr, NULL otherwise
Function to retrieve the names of currently loaded plugins.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns names for loaded plugins as a RRStringArrayPtr, NULL otherwise
Get a handle to a plugins shared library.
- Parameters
-
handle | Handle to a PluginManager instance |
pluginHandle | Handle to a plugin |
- Returns
- Returns a handle to the shared library holding a plugin. Returns -1 if the handle can't be retrieved.
- Note
- This function is not yet implemented..
getPreviousPlugin retrieves the "previous" plugin in the plugin managers internal list of plugins. This function is typically used together with the getFirstPlugin and getNextPlugin functions.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns a handle to a plugin. Returns NULL if the plugin is not found
Load a particular plugin.
- Parameters
-
handle | Handle to a PluginManager instance |
pluginName | Name of the plugin to load. The plugin name is the plugins shared library name, without path and extension. |
- Returns
- Returns a handle to a plugin, NULL if unsuccesfull
Load plugins. The function will look in the default plugin folder for plugins, and load them.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns true if Plugins are loaded, false otherwise
unload a particular plugin
- Parameters
-
handle | Handle to a PluginManager instance |
plugin | Handle to a Plugin instance |
- Returns
- Returns true if the Plugin are unloaded succesfully, false otherwise
Unload plugins.
- Parameters
-
handle | Handle to a PluginManager instance |
- Returns
- Returns true if Plugins are unloaded succesfully, false otherwise