X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=d54db4bbee49f4dff926c13f77c8cb84b5426fcd;hb=1122c8fd30065b5990a5b798b7bfd8891736def9;hp=0f35de5615b9357b616b1bbb60d9a1b7c069f894;hpb=3b51243382501d5f3cdda79d30c7ecf39d22dd87;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 0f35de56..d54db4bb 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -223,7 +223,8 @@ void plugin_set_dir (const char *dir); * and a value below zero if an error occurs. * * NOTES - * No attempt is made to re-load an already loaded module. + * Re-loading an already loaded module is detected and zero is returned in + * this case. */ int plugin_load (const char *name, uint32_t flags); @@ -326,8 +327,7 @@ int plugin_unregister_notification (const char *name); * `vl' Value list of the values that have been read by a `read' * function. */ -int plugin_dispatch_values (value_list_t *vl); -int plugin_dispatch_values_secure (const value_list_t *vl); +int plugin_dispatch_values (value_list_t const *vl); int plugin_dispatch_missing (const value_list_t *vl); int plugin_dispatch_notification (const notification_t *notif); @@ -399,4 +399,10 @@ cdtime_t plugin_get_interval (void); int plugin_thread_create (pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); +/* + * Plugins need to implement this + */ + +void module_register (void); + #endif /* PLUGIN_H */