aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/plugin_loader.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-15 14:01:26 +0000
committerMartin Willi <martin@strongswan.org>2008-05-15 14:01:26 +0000
commita3d92a3745e37ef82f07532b1dbfe870bc487514 (patch)
tree3cd9627d087558eb421ba18772ffa956f810b7d2 /src/libstrongswan/plugins/plugin_loader.h
parent84770ded1e4f42ea5a85cfcfba6e60900d4141ae (diff)
downloadstrongswan-a3d92a3745e37ef82f07532b1dbfe870bc487514.tar.bz2
strongswan-a3d92a3745e37ef82f07532b1dbfe870bc487514.tar.xz
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
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.h')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.h b/src/libstrongswan/plugins/plugin_loader.h
index 455332556..45b7afa57 100644
--- a/src/libstrongswan/plugins/plugin_loader.h
+++ b/src/libstrongswan/plugins/plugin_loader.h
@@ -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.