X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fplugin.h;fp=src%2Finclude%2Fcore%2Fplugin.h;h=f75788ad2359a479c5be92d276366d41bf2fa21b;hp=e6ea7573cf15a0514c939c754eed48ae16c10964;hb=373b92482bfded14f0aa9669fedb58722b32a489;hpb=56b97a180a53aecbfe9f7162b8ece3faae973cf9 diff --git a/src/include/core/plugin.h b/src/include/core/plugin.h index e6ea757..f75788a 100644 --- a/src/include/core/plugin.h +++ b/src/include/core/plugin.h @@ -248,6 +248,19 @@ sdb_plugin_get_ctx(void); 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