summaryrefslogtreecommitdiff
path: root/include/mqtt.h
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-11-04 16:18:20 +0100
committerThomas Schmucker <ts@its1.de>2024-11-04 16:18:20 +0100
commit9e339087e328d445f38173401f77502297a638f4 (patch)
tree776bda843c2204df08b0fb99580418af13d42f0f /include/mqtt.h
parent6d804810804e09c30b348ce7287ac175e41d7881 (diff)
downloaduse-mosquitto-9e339087e328d445f38173401f77502297a638f4.tar.gz
use-mosquitto-9e339087e328d445f38173401f77502297a638f4.tar.bz2
use-mosquitto-9e339087e328d445f38173401f77502297a638f4.zip
Verschiebe callback-handling nach 'mqtt_run'
Diffstat (limited to 'include/mqtt.h')
-rw-r--r--include/mqtt.h6
1 files changed, 4 insertions, 2 deletions
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
8 const char *password, // NOLINT 8 const char *password, // NOLINT
9 const char *hostname, // NOLINT 9 const char *hostname, // NOLINT
10 int port, 10 int port,
11 void callback(struct mosquitto *, void *, const struct mosquitto_message *),
12 void *userdata); 11 void *userdata);
13 12
14void mqtt_run(struct mosquitto *client, const char *topics[], const volatile bool *quit); 13void mqtt_run(struct mosquitto *client,
14 const char *topics[],
15 void callback(struct mosquitto *, void *, const struct mosquitto_message *),
16 const volatile bool *quit);
15 17
16void mqtt_shutdown(struct mosquitto *client); 18void mqtt_shutdown(struct mosquitto *client);