projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'github/pr/2040'
[collectd.git]
/
src
/
daemon
/
plugin.h
diff --git
a/src/daemon/plugin.h
b/src/daemon/plugin.h
index
d3038a3
..
9a9bf49
100644
(file)
--- a/
src/daemon/plugin.h
+++ b/
src/daemon/plugin.h
@@
-81,6
+81,16
@@
/*
* Public data types
*/
/*
* 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;
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;
};
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
{
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,
*/
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
/*
* Plugins need to implement this