X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=83c21094eee789112d9eca42fceb7b4dca2dbedc;hb=a5322d6c70e8e7775413f2b03e3ced2637f974b6;hp=ba6cde284affa0115bede3cc0272ca2c32525be6;hpb=abba9553ff446ea56620a811d5b218e842c1d5ee;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index ba6cde28..83c21094 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -119,7 +119,8 @@ void plugin_set_dir (const char *dir); * functions. * * ARGUMENTS - * `type' Name of the plugin to load. + * `name' Name of the plugin to load. + * `mr' Types of functions to request from the plugin. * * RETURN VALUE * Returns zero upon success, a value greater than zero if no plugin was found @@ -128,7 +129,7 @@ void plugin_set_dir (const char *dir); * NOTES * No attempt is made to re-load an already loaded module. */ -int plugin_load (const char *name); +int plugin_load (const char *name); void plugin_init_all (void); void plugin_read_all (const int *loop); @@ -177,7 +178,7 @@ int plugin_unregister_log (const char *name); * `vl' Value list of the values that have been read by a `read' * function. */ -int plugin_dispatch_values (const char *name, const value_list_t *vl); +int plugin_dispatch_values (const char *name, value_list_t *vl); void plugin_log (int level, const char *format, ...); #define ERROR(...) plugin_log (LOG_ERR, __VA_ARGS__)