Go to the source code of this file.
◆ spLoadPlugin()
spPlugin * spLoadPlugin |
( |
const char * | plugin_name | ) |
|
|
extern |
Loads a plugin. If you call this function before calling spFreePlugin() , the identical address of the plugin that has already loaded. In this case, the number of calls of spFreePlugin() must be balanced with that of spLoadPlugin() .
- Parameters
-
[in] | plugin_name | The null-terminated name of the plugin excluding the suffix. The directories specified by spSetPluginSearchPath() or the default directories are searched. |
- Returns
- Returns the pointer to spPlugin type. You have to unload the plugin by calling spFreePlugin() . NULL will be returned if error occurs.
◆ spFreePlugin()
◆ spEqPluginType()
Checks the type of the plugin.
◆ spGetPluginName()
const char * spGetPluginName |
( |
spPlugin * | plugin | ) |
|
|
extern |
Gets the name of the plugin.
◆ spGetPluginId()
const char * spGetPluginId |
( |
spPlugin * | plugin | ) |
|
|
extern |
Gets the ID of the plugin.
◆ spGetPluginDescription()
const char * spGetPluginDescription |
( |
spPlugin * | plugin | ) |
|
|
extern |
Gets the short description of the plugin which doesn't include line breaks.
◆ spGetPluginInformation()
const char * spGetPluginInformation |
( |
spPlugin * | plugin | ) |
|
|
extern |
Gets the detailed description of the plugin which can include line breaks.
◆ spGetPluginVersionId()
long spGetPluginVersionId |
( |
spPlugin * | plugin | ) |
|
|
extern |
Gets the version ID of the plugin which is an integer of long type.
◆ spGetPluginPriority()
int spGetPluginPriority |
( |
spPlugin * | plugin | ) |
|
|
extern |
◆ spGetPluginVersion()
spBool spGetPluginVersion |
( |
spPlugin * | plugin, |
|
|
int * | version, |
|
|
int * | revision ) |
|
extern |
Gets the version number of the plugin loaded.