diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-11-04 16:18:20 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-11-04 16:18:20 +0100 |
| commit | 9e339087e328d445f38173401f77502297a638f4 (patch) | |
| tree | 776bda843c2204df08b0fb99580418af13d42f0f /include | |
| parent | 6d804810804e09c30b348ce7287ac175e41d7881 (diff) | |
| download | use-mosquitto-9e339087e328d445f38173401f77502297a638f4.tar.gz use-mosquitto-9e339087e328d445f38173401f77502297a638f4.tar.bz2 use-mosquitto-9e339087e328d445f38173401f77502297a638f4.zip | |
Verschiebe callback-handling nach 'mqtt_run'
Diffstat (limited to 'include')
| -rw-r--r-- | include/mqtt.h | 6 |
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 | ||
| 14 | void mqtt_run(struct mosquitto *client, const char *topics[], const volatile bool *quit); | 13 | void 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 | ||
| 16 | void mqtt_shutdown(struct mosquitto *client); | 18 | void mqtt_shutdown(struct mosquitto *client); |
