From f5f5ac9aa1e7188c4f3ef197535b43e7044d7199 Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 14 Apr 2006 06:27:51 +0000 Subject: [PATCH] Removed `#if HAVE_LIBRRD' around `plugin_write': The logmode works even without librrd. Documented the `plugin_write' function. --- src/plugin.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/plugin.h b/src/plugin.h index a07c205a..baef3280 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -97,9 +97,24 @@ void plugin_register (char *type, void (*read) (void), void (*write) (char *, char *, char *)); -#ifdef HAVE_LIBRRD +/* + * NAME + * plugin_write + * + * DESCRIPTION + * Searches the plugin for `type' in the plugin-list. If found, and a `write' + * function is registered, it's called. If either the plugin is not found or + * the plugin doesn't provide a `write' function this function will return + * without further notice. + * + * ARGUMENTS + * `host' Host(name) from which the data originates. + * `type' Name of the plugin. + * `inst' Instance (passed to the plugin's `write' function. + * `val' Values for the RRD files. Also passed to the plugin. + */ void plugin_write (char *host, char *type, char *inst, char *val); -#endif /* HAVE_LIBRRD */ + void plugin_submit (char *type, char *inst, char *val); #endif /* PLUGIN_H */ -- 2.30.2