| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_ACLK_QUERY_H |
| 4 | #define NETDATA_ACLK_QUERY_H |
| 5 | |
| 6 | #include "libnetdata/libnetdata.h" |
| 7 | |
| 8 | #include "mqtt_websockets/mqtt_wss_client.h" |
| 9 | |
| 10 | #include "aclk_query_queue.h" |
| 11 | |
| 12 | int mark_pending_req_cancelled(const char *msg_id); |
| 13 | void mark_pending_req_cancel_all(); |
| 14 | |
| 15 | void aclk_execute_query(aclk_query_t *query); |
| 16 | void aclk_mqtt_client_set(mqtt_wss_client client); |
| 17 | void aclk_mqtt_client_reset(); |
| 18 | int http_api_v2(mqtt_wss_client client, aclk_query_t *query); |
| 19 | int send_bin_msg(mqtt_wss_client client, aclk_query_t *query); |
| 20 | |
| 21 | #endif //NETDATA_AGENT_CLOUD_LINK_H |