summaryrefslogtreecommitdiffstats
path: root/aclk/aclk_contexts_api.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /aclk/aclk_contexts_api.c
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclk/aclk_contexts_api.c')
-rw-r--r--aclk/aclk_contexts_api.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/aclk/aclk_contexts_api.c b/aclk/aclk_contexts_api.c
deleted file mode 100644
index f3344935..00000000
--- a/aclk/aclk_contexts_api.c
+++ /dev/null
@@ -1,41 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#include "aclk_query_queue.h"
-
-#include "aclk_contexts_api.h"
-
-void aclk_send_contexts_snapshot(contexts_snapshot_t data)
-{
- aclk_query_t query = aclk_query_new(PROTO_BIN_MESSAGE);
- query->data.bin_payload.topic = ACLK_TOPICID_CTXS_SNAPSHOT;
- query->data.bin_payload.payload = contexts_snapshot_2bin(data, &query->data.bin_payload.size);
- query->data.bin_payload.msg_name = "ContextsSnapshot";
- QUEUE_IF_PAYLOAD_PRESENT(query);
-}
-
-void aclk_send_contexts_updated(contexts_updated_t data)
-{
- aclk_query_t query = aclk_query_new(PROTO_BIN_MESSAGE);
- query->data.bin_payload.topic = ACLK_TOPICID_CTXS_UPDATED;
- query->data.bin_payload.payload = contexts_updated_2bin(data, &query->data.bin_payload.size);
- query->data.bin_payload.msg_name = "ContextsUpdated";
- QUEUE_IF_PAYLOAD_PRESENT(query);
-}
-
-void aclk_update_node_collectors(struct update_node_collectors *collectors)
-{
- aclk_query_t query = aclk_query_new(UPDATE_NODE_COLLECTORS);
- query->data.bin_payload.topic = ACLK_TOPICID_NODE_COLLECTORS;
- query->data.bin_payload.payload = generate_update_node_collectors_message(&query->data.bin_payload.size, collectors);
- query->data.bin_payload.msg_name = "UpdateNodeCollectors";
- QUEUE_IF_PAYLOAD_PRESENT(query);
-}
-
-void aclk_update_node_info(struct update_node_info *info)
-{
- aclk_query_t query = aclk_query_new(UPDATE_NODE_INFO);
- query->data.bin_payload.topic = ACLK_TOPICID_NODE_INFO;
- query->data.bin_payload.payload = generate_update_node_info_message(&query->data.bin_payload.size, info);
- query->data.bin_payload.msg_name = "UpdateNodeInfo";
- QUEUE_IF_PAYLOAD_PRESENT(query);
-}