plugin-loader: Add method to print loaded plugins on a given log level
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user