X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=d54db4bbee49f4dff926c13f77c8cb84b5426fcd;hb=f8379dd45f4a43595f4027992696ee8d02908bff;hp=635ff308f2cd4f83278554f4f79759a5b2efaeb4;hpb=7285e5f59ffa4efb391485fe9b35ee02f3dc856f;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 635ff308..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); @@ -398,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 */