From 9e339087e328d445f38173401f77502297a638f4 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 4 Nov 2024 16:18:20 +0100 Subject: Verschiebe callback-handling nach 'mqtt_run' --- include/mqtt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/mqtt.h') diff --git a/include/mqtt.h b/include/mqtt.h index 8dad5eb..c0c612d 100644 --- a/include/mqtt.h +++ b/include/mqtt.h @@ -8,9 +8,11 @@ struct mosquitto *mqtt_connect(const char *clientid, // NOLINT const char *password, // NOLINT const char *hostname, // NOLINT int port, - void callback(struct mosquitto *, void *, const struct mosquitto_message *), void *userdata); -void mqtt_run(struct mosquitto *client, const char *topics[], const volatile bool *quit); +void mqtt_run(struct mosquitto *client, + const char *topics[], + void callback(struct mosquitto *, void *, const struct mosquitto_message *), + const volatile bool *quit); void mqtt_shutdown(struct mosquitto *client); -- cgit v1.3