diff --git a/src/core/plugin.c b/src/core/plugin.c
index f10a904169f5d3993dc89894535e6a7b4ca01513..806e13c2f717f27b339ffd42b4cf43f4e2c3575b 100644 (file)
--- a/src/core/plugin.c
+++ b/src/core/plugin.c
return 0;
} /* sdb_plugin_set_ctx */
+const sdb_plugin_info_t *
+sdb_plugin_current(void)
+{
+ ctx_t *ctx = ctx_get();
+
+ if (! ctx)
+ return NULL;
+ return &ctx->info;
+} /* sdb_plugin_current */
+
int
sdb_plugin_configure(const char *name, oconfig_item_t *ci)
{