X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fplugin.h;h=9a9bf497607d0a7240e287421d95dc6fe8149735;hb=e81567f2a645fd15f4384ca9569119bc66c1412a;hp=2882ab9fe8bb31212cf202f9e21caf510d791025;hpb=f2f7049e8faff8043b12d7c7548d9398d3b3ada4;p=collectd.git diff --git a/src/daemon/plugin.h b/src/daemon/plugin.h index 2882ab9f..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; @@ -455,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