Tellurium Plugin C API
1.0.0
Plugin Framework for Tellurium
|
Plugin Manager Library Functions. More...
Functions | |
TELHandle | tpCreatePluginManager (const char *pluginDir) |
Create a new instance of a plugin manager. More... | |
bool | tpFreePluginManager (TELHandle handle) |
Free the plugin manager. A call to this function will also unload any loaded plugins. More... | |
bool | tpLoadPlugins (TELHandle handle) |
Load plugins. The function will look in the default plugin folder for plugins, and load them. More... | |
char * | tpGetPluginLoadErrors (TELHandle handle) |
Retrieve any errors that occured durig loading of plugins. | |
bool | tpUnLoadPlugins (TELHandle handle) |
Unload plugins. More... | |
TELHandle | tpLoadPlugin (TELHandle handle, const char *pluginName) |
Load a particular plugin. More... | |
bool | tpUnLoadPlugin (TELHandle handle, TELHandle plugin) |
unload a particular plugin More... | |
int | tpGetNumberOfPlugins (TELHandle handle) |
Get Number of loaded plugins. More... | |
char * | tpGetPluginNames (TELHandle handle) |
Function to retrieve the names of currently loaded plugins. More... | |
char * | tpGetPluginLibraryNames (TELHandle handle) |
Function to retrieve the library name of currently loaded plugins. More... | |
TELHandle | tpGetFirstPlugin (TELHandle handle) |
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. More... | |
TELHandle | tpGetNextPlugin (TELHandle handle) |
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. More... | |
TELHandle | tpGetPreviousPlugin (TELHandle handle) |
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. More... | |
TELHandle | tpGetCurrentPlugin (TELHandle handle) |
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. More... | |
TELHandle | tpGetPlugin (TELHandle handle, const char *pluginName) |
GetPluginHandle. More... | |
long | tpGetPluginSharedLibHandle (TELHandle handle, TELHandle pluginHandle) |
Get a handle to a plugins shared library. More... | |
Plugin Manager Library Functions.
TELHandle tpCreatePluginManager | ( | const char * | pluginDir) |
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.
pluginDir | Full path to folder containing plugins. If NULL, uses default folder. |
bool tpFreePluginManager | ( | TELHandle | handle) |
Free the plugin manager. A call to this function will also unload any loaded plugins.
handle | Handle to a plugin manager. |
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.
handle | Handle to a PluginManager instance |
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.
handle | Handle to a PluginManager instance |
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.
handle | Handle to a PluginManager instance |
int tpGetNumberOfPlugins | ( | TELHandle | handle) |
Get Number of loaded plugins.
handle | Handle to a PluginManager instance |
GetPluginHandle.
handle | Handle to a PluginManager instance |
pluginName | Pointer to string holding the name of a plugin |
char* tpGetPluginLibraryNames | ( | TELHandle | handle) |
Function to retrieve the library name of currently loaded plugins.
handle | Handle to a PluginManager instance |
char* tpGetPluginNames | ( | TELHandle | handle) |
Function to retrieve the names of currently loaded plugins.
handle | Handle to a PluginManager instance |
Get a handle to a plugins shared library.
handle | Handle to a PluginManager instance |
pluginHandle | Handle to a plugin |
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.
handle | Handle to a PluginManager instance |
Load a particular plugin.
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. |
bool tpLoadPlugins | ( | TELHandle | handle) |
Load plugins. The function will look in the default plugin folder for plugins, and load them.
handle | Handle to a PluginManager instance |
unload a particular plugin
handle | Handle to a PluginManager instance |
plugin | Handle to a Plugin instance |
bool tpUnLoadPlugins | ( | TELHandle | handle) |
Unload plugins.
handle | Handle to a PluginManager instance |