X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fplugin.h;h=b0bdbee12f164a3fc96b0c1bd4f1d85f69c44998;hb=2cea8075c666a6c6c7d6e1b4f95e1bee6f3803ac;hp=af691c5dcc172bf620cc48d4bc1fd0bffeeb4b93;hpb=db4535ae6cac033d869be59a148c25149bd8f80c;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index af691c5d..b0bdbee1 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -7,8 +7,7 @@ * * 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 - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. + * Free Software Foundation; only version 2 of the License is applicable. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -45,6 +44,7 @@ struct value_list_s { value_t *values; int values_len; + time_t time; char host[DATA_MAX_NAME_LEN]; char plugin[DATA_MAX_NAME_LEN]; char plugin_instance[DATA_MAX_NAME_LEN]; @@ -52,6 +52,8 @@ struct value_list_s }; typedef struct value_list_s value_list_t; +#define VALUE_LIST_INIT { NULL, 0, 0, "localhost", "", "", "" } + struct data_source_s { char name[DATA_MAX_NAME_LEN]; @@ -75,6 +77,8 @@ typedef struct complain_s unsigned int delay; /* how many more iterations we still need to wait */ } complain_t; +extern char hostname[DATA_MAX_NAME_LEN]; + /* * NAME * plugin_set_dir @@ -134,6 +138,12 @@ int plugin_register_shutdown (char *name, int (*callback) (void)); int plugin_register_data_set (const data_set_t *ds); +int plugin_unregister_init (const char *name); +int plugin_unregister_read (const char *name); +int plugin_unregister_write (const char *name); +int plugin_unregister_shutdown (const char *name); +int plugin_unregister_data_set (const char *name); + /* * NAME * plugin_dispatch_values