Code

Merge branch 'ff/plugins-ng' of octo@verplant.org:/var/lib/git/collectd into ff/plugi...
[collectd.git] / src / plugin.h
index 8381871892f56a198d35be014b41cc22f8ab3d06..107078e7ca6e75909d3ecd6559749a37575009e8 100644 (file)
@@ -52,6 +52,8 @@ struct value_list_s
 };
 typedef struct value_list_s value_list_t;
 
+#define VALUE_LIST_INIT { NULL, 0, 0, "localhost", "", "", "" }
+
 struct data_source_s
 {
        char   name[DATA_MAX_NAME_LEN];
@@ -75,6 +77,8 @@ typedef struct complain_s
        unsigned int delay;    /* how many more iterations we still need to wait */
 } complain_t;
 
+extern char hostname[DATA_MAX_NAME_LEN];
+
 /*
  * NAME
  *  plugin_set_dir