index e6ea7573cf15a0514c939c754eed48ae16c10964..f75788ad2359a479c5be92d276366d41bf2fa21b 100644 (file)
int
sdb_plugin_set_ctx(sdb_plugin_ctx_t ctx, sdb_plugin_ctx_t *old);
+/*
+ * sdb_plugin_current:
+ * Retrieve information about the plugin (if any) from which the current call
+ * into the core originated. The return value may not be modified.
+ *
+ * Returns:
+ * - information about the current plugin if we were called from some
+ * plugin's callback function
+ * - NULL else
+ */
+const sdb_plugin_info_t *
+sdb_plugin_current(void);
+
/*
* sdb_plugin_configure:
* Configure the plugin called 'name' using the config tree 'ci'. The plugin