summaryrefslogtreecommitdiffstats
path: root/src/streaming/stream-compression/compression.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/streaming/stream-compression/compression.h (renamed from src/streaming/compression.h)12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/streaming/compression.h b/src/streaming/stream-compression/compression.h
index 285fb2cf..37f589b8 100644
--- a/src/streaming/compression.h
+++ b/src/streaming/stream-compression/compression.h
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: GPL-3.0-or-later
-#include "rrdpush.h"
-
#ifndef NETDATA_RRDPUSH_COMPRESSION_H
#define NETDATA_RRDPUSH_COMPRESSION_H 1
+#include "libnetdata/libnetdata.h"
+
// signature MUST end with a newline
#if COMPRESSION_MAX_MSG_SIZE >= (COMPRESSION_MAX_CHUNK - COMPRESSION_MAX_OVERHEAD)
@@ -172,4 +172,12 @@ static inline size_t rrdpush_decompressor_get(struct decompressor_state *state,
// ----------------------------------------------------------------------------
+#include "../rrdpush.h"
+
+bool rrdpush_compression_initialize(struct sender_state *s);
+bool rrdpush_decompression_initialize(struct receiver_state *rpt);
+void rrdpush_parse_compression_order(struct receiver_state *rpt, const char *order);
+void rrdpush_select_receiver_compression_algorithm(struct receiver_state *rpt);
+void rrdpush_compression_deactivate(struct sender_state *s);
+
#endif // NETDATA_RRDPUSH_COMPRESSION_H 1