The C Utility Toolkit
#include <cutk/plugin.h>#include <cutk/dir.h>Functions | |
| int | PluginManagerAlloc (PluginManager *mgr) |
| void | PluginManagerFree (PluginManager *mgr) |
| int | PluginManagerAddPluginObj (PluginManager *mgr, Plugin *plugin) |
| int | PluginManagerAddPlugin (PluginManager *mgr, const char *path) |
| int | PluginManagerAddDir (PluginManager *mgr, const char *path, char recursive) |
| size_t | PluginManagerAddEvent (PluginManager *mgr, const char *event, PluginCallback cb, unsigned char pri) |
| int | PluginManagerRemoveEvent (PluginManager *mgr, size_t event, PluginCallback cb, unsigned char pri) |
| int | PluginManagerRemoveEventName (PluginManager *mgr, const char *event, PluginCallback cb, unsigned char pri) |
| size_t | PluginManagerFindEvent (PluginManager *mgr, const char *event) |
| int | PluginManagerDoEvent (PluginManager *mgr, size_t event, void *param1, void *param2) |
| int | PluginManagerDoEventName (PluginManager *mgr, const char *event, void *param1, void *param2) |
|
||||||||||||||||
|
Adds an entire directory of plugins. This attempts to load all files in the specified directory. Some may fail if they are not plugins which is not a problem.
|
|
||||||||||||||||||||
|
Adds a named event to the manager.
|
|
||||||||||||
|
Adds a plugin DLL to the manager.
|
|
||||||||||||
|
Destroys a PluginManager context, freeing all memory and resources
|
|
|
Initializes a new plugin manager
|
|
||||||||||||||||||||
|
Causes an event to run. This will call all functions registered for the specified event.
|
|
||||||||||||||||||||
|
Causes an event to run. This will call all functions registered for the specified event. This is slower than the plain DoEvent becuase it does a lookup of the event name.
|
|
||||||||||||
|
Finds a named event and returns the ID number.
|
|
|
Destroys a PluginManager context, freeing all memory and resources. This also calls the finalize() function of all active plugins.
|
|
||||||||||||||||||||
|
Removes an event from the manager
|
|
||||||||||||||||||||
|
Removes a named event from the manager. Slower than RemoveEvent because this does a name lookup.
|
1.3.7