| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_STREAM_REPLICATION_RECEIVER_H |
| 4 | #define NETDATA_STREAM_REPLICATION_RECEIVER_H |
| 5 | |
| 6 | #include "libnetdata/libnetdata.h" |
| 7 | #include "stream-traffic-types.h" |
| 8 | |
| 9 | #ifdef __cplusplus |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | |
| 13 | struct parser; |
| 14 | struct rrdhost; |
| 15 | struct rrdset; |
| 16 | |
| 17 | typedef ssize_t (*send_command)(const char *txt, struct parser *parser, STREAM_TRAFFIC_TYPE type); |
| 18 | bool replicate_chart_request(send_command callback, struct parser *parser, |
| 19 | struct rrdhost *rh, struct rrdset *rs, |
| 20 | time_t child_first_entry, time_t child_last_entry, time_t child_wall_clock_time, |
| 21 | time_t response_first_start_time, time_t response_last_end_time); |
| 22 | |
| 23 | bool stream_parse_enable_streaming(const char *start_streaming_txt); |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif //NETDATA_STREAM_REPLICATION_RECEIVER_H |