index 69c18b41d0ff2cd38d432852d2b1854fee9b8ff8..bcf01ec411bd5d2dc7e3ab25d17a99f88edd7037 100644 (file)
* plugin callback functions:
* See the description of the respective register function for what arguments
* the callbacks expect.
+ *
+ * The specified name of callback functions is prepended with the plugin name
+ * before being registered with the core.
*/
typedef int (*sdb_plugin_config_cb)(oconfig_item_t *ci);
* - a negative value else
*/
int
-sdb_plugin_register_config(const char *name, sdb_plugin_config_cb callback);
+sdb_plugin_register_config(sdb_plugin_config_cb callback);
/*
* sdb_plugin_register_init:
* every plugin care about it.
*
* If non-NULL, sdb_plugin_set_ctx stores the previous context in the location
- * pointed to be 'old'.
+ * pointed to by 'old'.
*/
sdb_plugin_ctx_t
sdb_plugin_get_ctx(void);
/*
* sdb_plugin_configure:
- * Configure the plugin called 'name' (according to the registered config
- * callback) using the config tree 'ci'.
+ * Configure the plugin called 'name' using the config tree 'ci'. The plugin
+ * name is the same as the one used when loading the plugin.
*
* Returns:
* - 0 on success