From 0984a86f9243a8147b8f02882af6380ee5bff22e Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 29 Oct 2024 23:30:39 +0100 Subject: Bessere Namensgebung für Funktionen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/mqtt.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/mqtt.h b/include/mqtt.h index fa7df1c..8dad5eb 100644 --- a/include/mqtt.h +++ b/include/mqtt.h @@ -1,16 +1,16 @@ #pragma once -// Project +// mosquitto #include -struct mosquitto *connect(const char *clientid, // NOLINT - const char *username, // NOLINT - const char *password, // NOLINT - const char *hostname, // NOLINT - int port, - void callback(struct mosquitto *, void *, const struct mosquitto_message *), - void *userdata); +struct mosquitto *mqtt_connect(const char *clientid, // NOLINT + const char *username, // NOLINT + const char *password, // NOLINT + const char *hostname, // NOLINT + int port, + void callback(struct mosquitto *, void *, const struct mosquitto_message *), + void *userdata); -void run(struct mosquitto *client, const char *topics[], const volatile bool *quit); +void mqtt_run(struct mosquitto *client, const char *topics[], const volatile bool *quit); -void shutdown(struct mosquitto *client); +void mqtt_shutdown(struct mosquitto *client); -- cgit v1.3