plugin load configuration in strongswan.conf

some components accept a "component.load" option with a space separated list of plugins to load
  libcharon- plugins are now handled the same way as libstrongswan- plugins
This commit is contained in:
Martin Willi
2008-05-15 14:01:26 +00:00
parent 84770ded1e
commit a3d92a3745
21 changed files with 169 additions and 118 deletions
+8 -3
View File
@@ -29,13 +29,18 @@ typedef struct plugin_loader_t plugin_loader_t;
struct plugin_loader_t {
/**
* Load plugins from a directory.
* Load a list of plugins from a directory.
*
* @param path path containing loadable plugins
* @param prefix prefix of plugin libraries to load
* @param list space separated list of plugins to load
* @return number of successfully loaded plugins
*/
int (*load)(plugin_loader_t *this, char *path, char *prefix);
int (*load)(plugin_loader_t *this, char *path, char *list);
/**
* Unload all loaded plugins.
*/
void (*unload)(plugin_loader_t *this);
/**
* Unload loaded plugins, destroy plugin_loader instance.