X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fplugin.h;h=e1303c76f2a5a86ccec668902a57db03e65fb597;hb=fd2768eefe98a7fa7cc4d53a1a6c83a61f9e52b9;hp=8749327ab8cc900b9c6030c4a64c5d213e922d7f;hpb=ae338f19a27a1a560ac8a41ce2de0e63f281f583;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 8749327a..e1303c76 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -1,6 +1,6 @@ /** * collectd - src/plugin.h - * Copyright (C) 2005 Florian octo Forster + * Copyright (C) 2005,2006 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -36,7 +36,7 @@ * NOTES * If `dir' is NULL the compiled in default `PLUGINDIR' is used. */ -void plugin_set_dir (char *dir); +void plugin_set_dir (const char *dir); /* * NAME @@ -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 */