]> git.ipfire.org Git - thirdparty/shairport-sync.git/blob - mqtt.h
Updates to the Issues template.
[thirdparty/shairport-sync.git] / mqtt.h
1 #ifndef MQTT_H
2 #define MQTT_H
3 #include <mosquitto.h>
4 #include <stdint.h>
5
6 int initialise_mqtt();
7 void mqtt_process_metadata(uint32_t type, uint32_t code, char *data, uint32_t length);
8 void mqtt_publish(char *topic, char *data, uint32_t length);
9 void mqtt_setup();
10 void on_connect(struct mosquitto *mosq, void *userdata, int rc);
11 void on_disconnect(struct mosquitto *mosq, void *userdata, int rc);
12 void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_message *msg);
13 void _cb_log(struct mosquitto *mosq, void *userdata, int level, const char *str);
14 #endif /* #ifndef MQTT_H */