Merge branch 'collectd-5.5'
[collectd.git] / src / daemon / plugin.h
index beeb576..daea4fc 100644 (file)
@@ -177,6 +177,8 @@ typedef struct user_data_s user_data_t;
 struct plugin_ctx_s
 {
        cdtime_t interval;
+       cdtime_t flush_interval;
+       cdtime_t flush_timeout;
 };
 typedef struct plugin_ctx_s plugin_ctx_t;
 
@@ -293,7 +295,7 @@ int plugin_register_read (const char *name,
  * "plugin_register_complex_read" returns an error (non-zero). */
 int plugin_register_complex_read (const char *group, const char *name,
                plugin_read_cb callback,
-               const struct timespec *interval,
+               cdtime_t interval,
                user_data_t *user_data);
 int plugin_register_write (const char *name,
                plugin_write_cb callback, user_data_t *user_data);
@@ -330,7 +332,7 @@ int plugin_unregister_notification (const char *name);
  *  This function can be called to output a list of _all_ registered
  *  writers to the logfacility.
  *  Since some writers dynamically build their name it can be hard for
- *  the configuring person to know it. This function will fill this gap. 
+ *  the configuring person to know it. This function will fill this gap.
  */
 void plugin_log_available_writers ();