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 --- src/mqtt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mqtt.c') diff --git a/src/mqtt.c b/src/mqtt.c index 50cfa6a..ce89b0b 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -9,13 +9,13 @@ #include "mqtt.h" 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) +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) { struct mosquitto *client = mosquitto_new(clientid, true, userdata); if ( client == NULL ) { @@ -43,7 +43,7 @@ connect(const char *clientid, // NOLINT } void -run(struct mosquitto *client, const char *topics[], const volatile bool *quit) +mqtt_run(struct mosquitto *client, const char *topics[], const volatile bool *quit) { for ( size_t idx = 0; topics[idx] != NULL; ++idx ) { mosquitto_subscribe(client, NULL, topics[idx], 0); @@ -62,7 +62,7 @@ run(struct mosquitto *client, const char *topics[], const volatile bool *quit) } void -shutdown(struct mosquitto *client) +mqtt_shutdown(struct mosquitto *client) { mosquitto_disconnect(client); mosquitto_destroy(client); -- cgit v1.3