plugin-loader: Add method to print loaded plugins on a given log level

This commit is contained in:
Tobias Brunner
2013-06-21 15:17:53 +02:00
parent 34ee14dd28
commit 607f8e9906
10 changed files with 26 additions and 4 deletions
@@ -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;
@@ -109,6 +110,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.
*/