aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/plugin_loader.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-21 14:45:38 +0200
committerTobias Brunner <tobias@strongswan.org>2013-06-21 15:17:53 +0200
commit607f8e99068dd8a1afebf9035ded1ae56424a2ec (patch)
tree42c6ee0b60c61769109537e42f276a58e9fd3106 /src/libstrongswan/plugins/plugin_loader.h
parent34ee14dd287a91260be84d674ebb3ecdc6565b6e (diff)
downloadstrongswan-607f8e99068dd8a1afebf9035ded1ae56424a2ec.tar.bz2
strongswan-607f8e99068dd8a1afebf9035ded1ae56424a2ec.tar.xz
plugin-loader: Add method to print loaded plugins on a given log level
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.h')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.h b/src/libstrongswan/plugins/plugin_loader.h
index 6bb9d6e75..d4f74b923 100644
--- a/src/libstrongswan/plugins/plugin_loader.h
+++ b/src/libstrongswan/plugins/plugin_loader.h
@@ -25,6 +25,7 @@
typedef struct plugin_loader_t plugin_loader_t;
#include <collections/enumerator.h>
+#include <utils/debug.h>
/* to avoid circular references we can't include plugin_feature.h */
struct plugin_feature_t;
@@ -110,6 +111,13 @@ struct plugin_loader_t {
char* (*loaded_plugins)(plugin_loader_t *this);
/**
+ * Log status about loaded plugins and features.
+ *
+ * @param level log level to use
+ */
+ void (*status)(plugin_loader_t *this, level_t level);
+
+ /**
* Unload loaded plugins, destroy plugin_loader instance.
*/
void (*destroy)(plugin_loader_t *this);