X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.h;h=5a4e4c75af12679c0c84c68b7b0892c5a7cc0c0a;hb=c442c66d9e98852f1b8eaa1b816d6ee7f84d0342;hp=d3038a395ea5f1c6ec52ce9eff27d3667e8a53b4;hpb=69d058a6ce8557e24b604b8efb09136e02054bd0;p=collectd.git diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index d3038a39..5a4e4c75 100644 --- a/src/daemon/plugin.h +++ b/src/daemon/plugin.h @@ -81,6 +81,16 @@ /* * Public data types */ +struct identifier_s +{ + char *host; + char *plugin; + char *plugin_instance; + char *type; + char *type_instance; +}; +typedef struct identifier_s identifier_t; + typedef unsigned long long counter_t; typedef double gauge_t; typedef int64_t derive_t; @@ -110,9 +120,7 @@ struct value_list_s }; typedef struct value_list_s value_list_t; -#define VALUE_LIST_INIT { NULL, 0, 0, plugin_get_interval (), \ - "localhost", "", "", "", "", NULL } -#define VALUE_LIST_STATIC { NULL, 0, 0, 0, "localhost", "", "", "", "", NULL } +#define VALUE_LIST_INIT { .values = NULL, .meta = NULL } struct data_source_s {