summaryrefslogtreecommitdiffstats
path: root/src/streaming/replication.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/streaming/replication.h
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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);