X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.h;h=1e4b3d1815a88fb6a7594543fa855208798eadf1;hb=0d80072344ea5322c34f716ed77a5319a62bfc96;hp=b1adb527bb46536334af708275e1cbd0232a4f1d;hpb=00f9279d9711c9882b65d54fd72c2f25a3f403fc;p=collectd.git diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index b1adb527..1e4b3d18 100644 --- a/src/daemon/plugin.h +++ b/src/daemon/plugin.h @@ -240,10 +240,10 @@ void plugin_set_dir (const char *dir); */ int plugin_load (const char *name, uint32_t flags); -void plugin_init_all (void); +int plugin_init_all (void); void plugin_read_all (void); int plugin_read_all_once (void); -void plugin_shutdown_all (void); +int plugin_shutdown_all (void); /* * NAME @@ -334,7 +334,7 @@ int plugin_unregister_notification (const char *name); * Since some writers dynamically build their name it can be hard for * the configuring person to know it. This function will fill this gap. */ -void plugin_log_available_writers (); +void plugin_log_available_writers (void); /* * NAME @@ -459,4 +459,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 */