table of contents
| plugin.c(3elektra) | Elektra | plugin.c(3elektra) |
NAME¶
plugin.c - Interna of plugin functionality.
SYNOPSIS¶
#include <kdberrors.h>
#include <kdbinternal.h>
#include <kdbversion.h>
Functions¶
int elektraProcessPlugin (Key *cur, int *pluginNumber, char
**pluginName, char **referenceName, Key *errorKey)
int elektraProcessPlugins (Plugin **plugins, KeySet *modules, KeySet
*referencePlugins, KeySet *config, KeySet *systemConfig, Key *errorKey)
Load a plugin. Plugin * elektraPluginOpen (const char *name, KeySet
*modules, KeySet *config, Key *errorKey)
Opens a plugin.
Detailed Description¶
Interna of plugin functionality.
Copyright:
Function Documentation¶
Plugin* elektraPluginOpen (const char * name, KeySet * modules, KeySet * config, Key * errorKey)¶
Opens a plugin. The config will be used as is. So be sure to transfer ownership of the config to it, with e.g. ksDup(). elektraPluginClose() will delete the config.
Returns:
int elektraProcessPlugin (Key * cur, int * pluginNumber, char ** pluginName, char ** referenceName, Key * errorKey)¶
Return values:
2 and an allocated string of the referenceName if an old plugin should be used
3 and both if a new plugin should be created and made available for later back referencing.
-1 on error
int elektraProcessPlugins (Plugin ** plugins, KeySet * modules, KeySet * referencePlugins, KeySet * config, KeySet * systemConfig, Key * errorKey)¶
Load a plugin. The array of plugins must be set to 0. Its length is NR_OF_PLUGINS.
systemConfig will only be used, not deleted.
Parameters:
systemConfig the shared (system) config for the plugins. Every plugin additional get this config.
Return values:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
| Mon Jan 15 2018 | Version 0.8.20 |