#include <public/IPluginSys.h>
Inherits SourceMod::SMInterface.
Inheritance diagram for SourceMod::IPluginManager:
Public Member Functions | |
| virtual const char * | GetInterfaceName () |
| Must return a string defining the interface's unique name. | |
| virtual unsigned int | GetInterfaceVersion () |
| Must return an integer defining the interface's version. | |
| virtual IPlugin * | LoadPlugin (const char *path, bool debug, PluginType type, char error[], size_t maxlength, bool *wasloaded)=0 |
| Attempts to load a plugin. | |
| virtual bool | UnloadPlugin (IPlugin *plugin)=0 |
| Attempts to unload a plugin. | |
| virtual IPlugin * | FindPluginByContext (const sp_context_t *ctx)=0 |
| Finds a plugin by its context. Note: This function should be considered O(1). | |
| virtual unsigned int | GetPluginCount ()=0 |
| Returns the number of plugins (both failed and loaded). | |
| virtual IPluginIterator * | GetPluginIterator ()=0 |
| Returns a pointer that can be used to iterate through plugins. Note: This pointer must be freed using EITHER delete OR IPluginIterator::Release(). | |
| virtual void | AddPluginsListener (IPluginsListener *listener)=0 |
| Adds a plugin manager listener. | |
| virtual void | RemovePluginsListener (IPluginsListener *listener)=0 |
| Removes a plugin listener. | |
Definition at line 282 of file IPluginSys.h.
| virtual IPlugin* SourceMod::IPluginManager::LoadPlugin | ( | const char * | path, | |
| bool | debug, | |||
| PluginType | type, | |||
| char | error[], | |||
| size_t | maxlength, | |||
| bool * | wasloaded | |||
| ) | [pure virtual] |
Attempts to load a plugin.
| path | Path and filename of plugin, relative to plugins folder. | |
| debug | Deprecated, must be false. | |
| type | Lifetime of the plugin. | |
| error | Buffer to hold any error message. | |
| maxlength | Maximum length of error message buffer. | |
| wasloaded | Stores if the plugin is already loaded. |
| virtual bool SourceMod::IPluginManager::UnloadPlugin | ( | IPlugin * | plugin | ) | [pure virtual] |
Attempts to unload a plugin.
| plugin | Pointer to the plugin handle. |
| virtual IPlugin* SourceMod::IPluginManager::FindPluginByContext | ( | const sp_context_t * | ctx | ) | [pure virtual] |
Finds a plugin by its context. Note: This function should be considered O(1).
| ctx | Pointer to an sp_context_t. |
| virtual unsigned int SourceMod::IPluginManager::GetPluginCount | ( | ) | [pure virtual] |
Returns the number of plugins (both failed and loaded).
| virtual void SourceMod::IPluginManager::AddPluginsListener | ( | IPluginsListener * | listener | ) | [pure virtual] |
Adds a plugin manager listener.
| listener | Pointer to a listener. |
| virtual void SourceMod::IPluginManager::RemovePluginsListener | ( | IPluginsListener * | listener | ) | [pure virtual] |
Removes a plugin listener.
| listener | Pointer to a listener. |
1.5.1