X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.h;h=9a9bf497607d0a7240e287421d95dc6fe8149735;hb=e81567f2a645fd15f4384ca9569119bc66c1412a;hp=d3038a395ea5f1c6ec52ce9eff27d3667e8a53b4;hpb=d0408cb0dbef15d739a6b1cd047e9c94d7643329;p=collectd.git diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index d3038a39..9a9bf497 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 { @@ -457,7 +465,7 @@ cdtime_t plugin_get_interval (void); */ int plugin_thread_create (pthread_t *thread, const pthread_attr_t *attr, - void *(*start_routine) (void *), void *arg); + void *(*start_routine) (void *), void *arg, char const *name); /* * Plugins need to implement this