summaryrefslogtreecommitdiffstats
path: root/src/streaming/replication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/streaming/replication.h')
-rw-r--r--src/streaming/replication.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/streaming/replication.h b/src/streaming/replication.h
index 507b7c32f..27baeaf35 100644
--- a/src/streaming/replication.h
+++ b/src/streaming/replication.h
@@ -5,6 +5,8 @@
#include "daemon/common.h"
+struct parser;
+
struct replication_query_statistics {
SPINLOCK spinlock;
size_t queries_started;
@@ -17,9 +19,9 @@ struct replication_query_statistics replication_get_query_statistics(void);
bool replicate_chart_response(RRDHOST *rh, RRDSET *rs, bool start_streaming, time_t after, time_t before);
-typedef ssize_t (*send_command)(const char *txt, void *data);
+typedef ssize_t (*send_command)(const char *txt, struct parser *parser);
-bool replicate_chart_request(send_command callback, void *callback_data,
+bool replicate_chart_request(send_command callback, struct parser *parser,
RRDHOST *rh, RRDSET *rs,
time_t child_first_entry, time_t child_last_entry, time_t child_wall_clock_time,
time_t response_first_start_time, time_t response_last_end_time);