summaryrefslogtreecommitdiffstats
path: root/aclk/mqtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'aclk/mqtt.h')
-rw-r--r--aclk/mqtt.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/aclk/mqtt.h b/aclk/mqtt.h
new file mode 100644
index 0000000000..2c7e120361
--- /dev/null
+++ b/aclk/mqtt.h
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_MQTT_H
+#define NETDATA_MQTT_H
+
+#ifdef ENABLE_ACLK
+#include "mosquitto/lib/mosquitto.h"
+#endif
+
+void _show_mqtt_info();
+int _link_event_loop(int timeout);
+void _link_shutdown();
+int _link_lib_init(char *aclk_hostname, int aclk_port, void (*on_connect)(void *), void (*on_disconnect)(void *));
+int _link_subscribe(char *topic, int qos);
+int _link_send_message(char *topic, char *message);
+const char *_link_strerror(int rc);
+
+extern int aclk_connection_initialized;
+int aclk_handle_cloud_request(char *);
+
+#endif //NETDATA_MQTT_H