diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-06-21 14:45:38 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-06-21 15:17:53 +0200 |
commit | 607f8e99068dd8a1afebf9035ded1ae56424a2ec (patch) | |
tree | 42c6ee0b60c61769109537e42f276a58e9fd3106 /src/libstrongswan/plugins/plugin_loader.c | |
parent | 34ee14dd287a91260be84d674ebb3ecdc6565b6e (diff) | |
download | strongswan-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.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 2c8eae988..26310645b 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -1082,6 +1082,15 @@ METHOD(plugin_loader_t, loaded_plugins, char*, return this->loaded_plugins ?: ""; } +METHOD(plugin_loader_t, status, void, + private_plugin_loader_t *this, level_t level) +{ + if (this->loaded_plugins) + { + dbg(DBG_LIB, level, "loaded plugins: %s", this->loaded_plugins); + } +} + METHOD(plugin_loader_t, destroy, void, private_plugin_loader_t *this) { @@ -1109,6 +1118,7 @@ plugin_loader_t *plugin_loader_create() .create_plugin_enumerator = _create_plugin_enumerator, .has_feature = _has_feature, .loaded_plugins = _loaded_plugins, + .status = _status, .destroy = _destroy, }, .plugins = linked_list_create(), |