Code

mbmon plugin: Correct the `type's being passed to the dispatch function.
[collectd.git] / src / plugin.h
index a2df069269f03f4155019013c9515b9fba258dc4..b0bdbee12f164a3fc96b0c1bd4f1d85f69c44998 100644 (file)
@@ -44,6 +44,7 @@ struct value_list_s
 {
        value_t *values;
        int      values_len;
+       time_t   time;
        char     host[DATA_MAX_NAME_LEN];
        char     plugin[DATA_MAX_NAME_LEN];
        char     plugin_instance[DATA_MAX_NAME_LEN];
@@ -51,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];
@@ -74,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
@@ -133,6 +138,12 @@ int plugin_register_shutdown (char *name,
                int (*callback) (void));
 int plugin_register_data_set (const data_set_t *ds);
 
+int plugin_unregister_init (const char *name);
+int plugin_unregister_read (const char *name);
+int plugin_unregister_write (const char *name);
+int plugin_unregister_shutdown (const char *name);
+int plugin_unregister_data_set (const char *name);
+
 /*
  * NAME
  *  plugin_dispatch_values