X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.h;h=f6448a581f9fef5783ea781f6a198bb8f5f2cd53;hb=f7e2d82c4d016df72c55e85bb9c5bc9ba08d5f91;hp=8bdb4c2b0a339d9758d5394954b75a18d6167998;hpb=2079ee1517e34de372f58e7e2267ad5c71a8a41f;p=collectd.git diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index 8bdb4c2b..f6448a58 100644 --- a/src/daemon/plugin.h +++ b/src/daemon/plugin.h @@ -83,6 +83,15 @@ /* * 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; @@ -111,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 } + { .values = NULL, .meta = NULL } struct data_source_s { char name[DATA_MAX_NAME_LEN]; @@ -440,7 +447,8 @@ 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